Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_PowerConverters_HalfControlledBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.644/2.644, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.565e-05/4.581e-05, allocations: 4 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4546/0.4547, allocations: 54.84 MB / 364.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1862/0.641, allocations: 96.35 MB / 461 MB, free: 8 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000323/0.6414, allocations: 72.03 kB / 461 MB, free: 15.93 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1353/0.7767, allocations: 31.63 MB / 492.7 MB, free: 112 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.7768, allocations: 0 / 492.7 MB, free: 112 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002039/0.777, allocations: 51.94 kB / 492.7 MB, free: 60 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 454 * Number of variables: 454 Notification: Performance of Generate backend data structure: time 0.007181/0.7842, allocations: 2.078 MB / 494.8 MB, free: 13.92 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.3e-05/0.7843, allocations: 12.03 kB / 494.8 MB, free: 13.91 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008095/0.7851, allocations: 261.5 kB / 495.1 MB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007358/0.7859, allocations: 233.3 kB / 495.3 MB, free: 13.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008647/0.7945, allocations: 2.16 MB / 497.5 MB, free: 11.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.7948, allocations: 139.5 kB / 497.6 MB, free: 11.06 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004556/0.7952, allocations: 184 kB / 497.8 MB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006463/0.8017, allocations: 2.434 MB / 0.4885 GB, free: 8.359 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.979e-05/0.8018, allocations: 7.953 kB / 0.4885 GB, free: 8.352 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002887/0.8021, allocations: 72 kB / 0.4886 GB, free: 8.281 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000123/0.8023, allocations: 71.5 kB / 0.4886 GB, free: 8.211 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005576/0.8079, allocations: 2.005 MB / 0.4906 GB, free: 6.203 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01917/0.8271, allocations: 7.201 MB / 0.4976 GB, free: 14.88 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004755/0.8319, allocations: 1.76 MB / 0.4993 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0035/0.8354, allocations: 1.266 MB / 0.5006 GB, free: 11.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001147/0.8356, allocations: 13 kB / 0.5006 GB, free: 11.83 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002166/0.8377, allocations: 0.9177 MB / 0.5015 GB, free: 10.88 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 4.679e-06/0.8378, allocations: 0 / 0.5015 GB, free: 10.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=126): time 0.004979/0.8427, allocations: 1.773 MB / 0.5032 GB, free: 9.098 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001671/0.8429, allocations: 238.6 kB / 0.5034 GB, free: 8.812 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00277/0.8457, allocations: 1.164 MB / 0.5046 GB, free: 7.637 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000307/0.8461, allocations: 65.69 kB / 0.5046 GB, free: 7.566 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009607/0.847, allocations: 0.771 MB / 0.5054 GB, free: 6.785 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000563/0.8476, allocations: 382.8 kB / 0.5058 GB, free: 6.406 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.8477, allocations: 24 kB / 0.5058 GB, free: 6.383 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.848, allocations: 366.7 kB / 0.5061 GB, free: 6.016 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001744/0.8497, allocations: 0.652 MB / 0.5068 GB, free: 5.363 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002122/0.8519, allocations: 0.9521 MB / 0.5077 GB, free: 4.305 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00186/0.8538, allocations: 0.7272 MB / 0.5084 GB, free: 3.578 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-05/0.8538, allocations: 8 kB / 0.5084 GB, free: 3.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.004932/0.8587, allocations: 1.926 MB / 0.5103 GB, free: 1.633 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001381/0.8601, allocations: 2.443 MB / 0.5127 GB, free: 15 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.075e-05/0.8602, allocations: 12 kB / 0.5127 GB, free: 14.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002405/0.8626, allocations: 0.5552 MB / 0.5132 GB, free: 14.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001469/0.8641, allocations: 179.7 kB / 0.5134 GB, free: 14.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01395/0.8781, allocations: 5.992 MB / 0.5193 GB, free: 8.117 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00214/0.8803, allocations: 207 kB / 0.5195 GB, free: 7.914 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001561/0.8804, allocations: 48 kB / 0.5195 GB, free: 7.867 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.8805, allocations: 4 kB / 0.5195 GB, free: 7.863 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004745/0.8852, allocations: 1.871 MB / 0.5213 GB, free: 5.988 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.812e-05/0.8853, allocations: 12.12 kB / 0.5213 GB, free: 5.977 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002027/0.8873, allocations: 0.5512 MB / 0.5219 GB, free: 5.422 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/0.8886, allocations: 167.7 kB / 0.522 GB, free: 5.258 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3559/1.245, allocations: 6.026 MB / 0.5279 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/1.246, allocations: 183.9 kB / 0.5281 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/1.246, allocations: 49.75 kB / 0.5282 GB, free: 125.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 57 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off,$PRE.rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,$PRE.rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,$PRE.rectifier.pre[1].u,rectifier.pre[1].u,rectifier.pre[1].y,$PRE.rectifier.pre[2].u,rectifier.pre[2].u,rectifier.pre[2].y,$PRE.rectifier.pre[3].u,rectifier.pre[3].u,rectifier.pre[3].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,$PRE.pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[1].entryTime,$PRE.pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,$PRE.pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,$PRE.pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,$PRE.pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,$PRE.pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 38} Notification: Performance of prepare postOptimizeDAE: time 0.0005008/1.247, allocations: 221 kB / 0.5284 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005204/1.247, allocations: 144.1 kB / 0.5285 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005576/1.248, allocations: 182.4 kB / 0.5287 GB, free: 125.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.928e-05/1.248, allocations: 12.72 kB / 0.5287 GB, free: 125.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/1.248, allocations: 5.453 kB / 0.5287 GB, free: 125.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.597e-05/1.248, allocations: 3.609 kB / 0.5287 GB, free: 125.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01115/1.259, allocations: 3.897 MB / 0.5325 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.299e-05/1.259, allocations: 4.172 kB / 0.5325 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008815/1.26, allocations: 90.81 kB / 0.5326 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002187/1.262, allocations: 0.5291 MB / 0.5331 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002252/1.263, allocations: 23.64 kB / 0.5331 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01358/1.276, allocations: 5.923 MB / 0.5389 GB, free: 123.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/1.276, allocations: 4.625 kB / 0.5389 GB, free: 123.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006302/1.283, allocations: 2.672 MB / 0.5415 GB, free: 123.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001326/1.284, allocations: 383.1 kB / 0.5419 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003903/1.284, allocations: 35.44 kB / 0.5419 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/1.286, allocations: 126.4 kB / 0.542 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000712/1.287, allocations: 183.5 kB / 0.5422 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/1.287, allocations: 33.83 kB / 0.5423 GB, free: 123.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002043/1.289, allocations: 0.8779 MB / 0.5431 GB, free: 123 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.11e-07/1.289, allocations: 2.953 kB / 0.5431 GB, free: 123 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004183/1.293, allocations: 0.9251 MB / 0.544 GB, free: 122.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 42 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,rectifier.pre[1].u,rectifier.pre[1].y,rectifier.pre[2].u,rectifier.pre[2].y,rectifier.pre[3].u,rectifier.pre[3].y,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre[3].u,rectifier.pre[2].u,rectifier.pre[1].u,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.007004/1.3, allocations: 3.298 MB / 0.5472 GB, free: 121.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008011/1.308, allocations: 3.146 MB / 0.5503 GB, free: 119.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.742e-05/1.308, allocations: 3.75 kB / 0.5503 GB, free: 119.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002724/1.311, allocations: 1.103 MB / 0.5514 GB, free: 119.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002863/1.314, allocations: 361 kB / 0.5517 GB, free: 119.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/1.325, allocations: 3.465 MB / 0.5551 GB, free: 118 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001729/1.326, allocations: 1.774 MB / 0.5569 GB, free: 117.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001551/1.328, allocations: 0.6475 MB / 0.5575 GB, free: 116.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.573e-06/1.328, allocations: 3.281 kB / 0.5575 GB, free: 116.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.493/4.821, allocations: 42.86 MB / 0.5993 GB, free: 90.94 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse_res.mat does not exist to compare? outputFormat=mat