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.312/2.312, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00061/0.0006101, allocations: 12 kB / 314.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3706/0.3712, allocations: 54.87 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1922/0.5635, allocations: 96.43 MB / 465.8 MB, free: 10.04 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/0.5639, allocations: 79.95 kB / 465.9 MB, free: 9.957 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4203/0.9842, allocations: 31.54 MB / 497.4 MB, free: 87.13 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.9843, allocations: 0 / 497.4 MB, free: 87.13 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002014/0.9845, allocations: 59.84 kB / 497.5 MB, free: 87.08 MB / 394.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.007913/0.9924, allocations: 2.276 MB / 499.7 MB, free: 84.76 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.9925, allocations: 16.03 kB / 499.8 MB, free: 84.75 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0011/0.9936, allocations: 265.5 kB / 0.4883 GB, free: 84.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000717/0.9943, allocations: 241.1 kB / 0.4885 GB, free: 84.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007782/1.002, allocations: 2.2 MB / 0.4907 GB, free: 82.06 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001607/1.002, allocations: 139.4 kB / 0.4908 GB, free: 81.92 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005899/1.003, allocations: 180 kB / 0.491 GB, free: 81.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006587/1.01, allocations: 2.492 MB / 0.4934 GB, free: 79.17 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.359e-05/1.01, allocations: 4 kB / 0.4934 GB, free: 79.16 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000286/1.01, allocations: 79.73 kB / 0.4935 GB, free: 79.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.682e-05/1.01, allocations: 79.45 kB / 0.4936 GB, free: 79.01 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006066/1.016, allocations: 2.102 MB / 0.4956 GB, free: 76.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01822/1.034, allocations: 7.188 MB / 0.5026 GB, free: 69.65 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004461/1.039, allocations: 1.79 MB / 0.5044 GB, free: 67.86 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001022/1.039, allocations: 13 kB / 0.5044 GB, free: 67.84 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002039/1.041, allocations: 0.9604 MB / 0.5053 GB, free: 66.86 MB / 394.7 MB Notification: Performance of pre-optimization done (n=126): time 4.268e-06/1.041, allocations: 0 / 0.5053 GB, free: 66.86 MB / 394.7 MB Notification: Performance of matching and sorting (n=126): time 0.01571/1.057, allocations: 3.873 MB / 0.5091 GB, free: 62.96 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/1.057, allocations: 234.6 kB / 0.5094 GB, free: 62.68 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002493/1.06, allocations: 1.176 MB / 0.5105 GB, free: 61.49 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003654/1.06, allocations: 69.69 kB / 0.5106 GB, free: 61.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007816/1.061, allocations: 0.7824 MB / 0.5113 GB, free: 60.63 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006322/1.061, allocations: 370.5 kB / 0.5117 GB, free: 60.28 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/1.062, allocations: 32 kB / 0.5117 GB, free: 60.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/1.062, allocations: 370.7 kB / 0.5121 GB, free: 59.88 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0018/1.064, allocations: 0.7027 MB / 0.5128 GB, free: 59.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002087/1.066, allocations: 1.018 MB / 0.5137 GB, free: 58.05 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001947/1.068, allocations: 0.7598 MB / 0.5145 GB, free: 57.29 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.248e-05/1.068, allocations: 0 / 0.5145 GB, free: 57.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.005269/1.073, allocations: 2.04 MB / 0.5165 GB, free: 55.24 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005128/1.074, allocations: 2.444 MB / 0.5189 GB, free: 52.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/1.074, allocations: 11.94 kB / 0.5189 GB, free: 52.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002095/1.076, allocations: 0.5393 MB / 0.5194 GB, free: 52.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/1.077, allocations: 171.7 kB / 0.5196 GB, free: 51.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01159/1.089, allocations: 6.07 MB / 0.5255 GB, free: 45.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002077/1.091, allocations: 218.9 kB / 0.5257 GB, free: 45.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002532/1.091, allocations: 51.98 kB / 0.5258 GB, free: 45.42 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/1.091, allocations: 4 kB / 0.5258 GB, free: 45.41 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004411/1.096, allocations: 1.933 MB / 0.5276 GB, free: 43.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-05/1.096, allocations: 8 kB / 0.5277 GB, free: 43.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001696/1.097, allocations: 0.5357 MB / 0.5282 GB, free: 42.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/1.099, allocations: 171.7 kB / 0.5283 GB, free: 42.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/1.11, allocations: 6.093 MB / 0.5343 GB, free: 36.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/1.111, allocations: 183.2 kB / 0.5345 GB, free: 36.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/1.111, allocations: 55.98 kB / 0.5345 GB, free: 36.3 MB / 394.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 127 * 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 36} Notification: Performance of prepare postOptimizeDAE: time 0.001863/1.113, allocations: 0.8091 MB / 0.5353 GB, free: 35.49 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004738/1.114, allocations: 138.3 kB / 0.5354 GB, free: 35.35 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005304/1.114, allocations: 178.2 kB / 0.5356 GB, free: 35.17 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/1.114, allocations: 12 kB / 0.5356 GB, free: 35.16 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/1.114, allocations: 0 / 0.5356 GB, free: 35.16 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.066e-05/1.114, allocations: 7.984 kB / 0.5356 GB, free: 35.15 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008772/1.123, allocations: 3.803 MB / 0.5393 GB, free: 31.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/1.123, allocations: 0 / 0.5393 GB, free: 31.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008189/1.124, allocations: 95.83 kB / 0.5394 GB, free: 31.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001922/1.126, allocations: 0.524 MB / 0.5399 GB, free: 30.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001823/1.126, allocations: 19.98 kB / 0.54 GB, free: 30.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01138/1.138, allocations: 6.057 MB / 0.5459 GB, free: 24.49 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/1.138, allocations: 0 / 0.5459 GB, free: 24.49 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006158/1.144, allocations: 2.819 MB / 0.5486 GB, free: 21.65 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/1.145, allocations: 391.1 kB / 0.549 GB, free: 21.25 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003462/1.145, allocations: 35.98 kB / 0.549 GB, free: 21.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001398/1.147, allocations: 127.9 kB / 0.5492 GB, free: 21.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006102/1.147, allocations: 188.6 kB / 0.5493 GB, free: 20.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/1.148, allocations: 28 kB / 0.5494 GB, free: 20.88 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001885/1.149, allocations: 0.9074 MB / 0.5503 GB, free: 19.96 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.149, allocations: 0 / 0.5503 GB, free: 19.96 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003351/1.153, allocations: 0.9227 MB / 0.5512 GB, free: 19.04 MB / 394.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[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 75 * 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 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.006644/1.16, allocations: 3.462 MB / 0.5545 GB, free: 15.55 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007984/1.168, allocations: 3.296 MB / 0.5578 GB, free: 12.22 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/1.168, allocations: 0.5625 kB / 0.5578 GB, free: 12.22 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00276/1.17, allocations: 1.168 MB / 0.5589 GB, free: 11.04 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002468/1.173, allocations: 364.5 kB / 0.5592 GB, free: 10.68 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01265/1.186, allocations: 9.668 MB / 0.5687 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001926/1.188, allocations: 1.766 MB / 0.5704 GB, free: 14.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001585/1.189, allocations: 0.6477 MB / 0.571 GB, free: 14.29 MB / 410.7 MB Notification: Performance of SimCode: time 1.042e-06/1.189, allocations: 0 / 0.571 GB, free: 14.29 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.299/4.488, allocations: 42.26 MB / 0.6123 GB, free: 3.984 MB / 442.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