Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.968/1.968, allocations: 194.9 MB / 211.1 MB, free: 7.582 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003567, allocations: 12 kB / 264.1 MB, free: 2.508 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.352, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1328/0.4849, allocations: 74.84 MB / 383.4 MB, free: 1.715 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/0.4852, allocations: 75.95 kB / 383.5 MB, free: 1.641 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03081/0.516, allocations: 7.015 MB / 390.5 MB, free: 10.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.5161, allocations: 4 kB / 390.5 MB, free: 10.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.048e-05/0.5161, allocations: 8 kB / 390.5 MB, free: 10.58 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001849/0.518, allocations: 0.7797 MB / 391.3 MB, free: 9.738 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/0.5181, allocations: 8.031 kB / 391.3 MB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001471/0.5182, allocations: 74.53 kB / 391.4 MB, free: 9.648 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.5184, allocations: 51.44 kB / 391.4 MB, free: 9.598 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006202/0.519, allocations: 318.1 kB / 391.7 MB, free: 9.246 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.839e-05/0.5191, allocations: 33 kB / 391.8 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.972e-05/0.5192, allocations: 36 kB / 391.8 MB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.5203, allocations: 424.7 kB / 392.2 MB, free: 8.742 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.5204, allocations: 0 / 392.2 MB, free: 8.742 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.414e-05/0.5204, allocations: 16 kB / 392.2 MB, free: 8.727 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.5205, allocations: 11.94 kB / 392.2 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009752/0.5215, allocations: 307.8 kB / 392.5 MB, free: 8.414 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003808/0.5253, allocations: 1.648 MB / 394.2 MB, free: 6.656 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009225/0.5263, allocations: 334.8 kB / 394.5 MB, free: 6.32 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.01e-05/0.5263, allocations: 8.281 kB / 394.5 MB, free: 6.312 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006813/0.527, allocations: 277.4 kB / 394.8 MB, free: 6.008 MB / 330.7 MB Notification: Performance of pre-optimization done (n=38): time 2.996e-06/0.527, allocations: 0 / 394.8 MB, free: 6.008 MB / 330.7 MB Notification: Performance of matching and sorting (n=38): time 0.003766/0.5308, allocations: 1.132 MB / 395.9 MB, free: 4.758 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001407/0.531, allocations: 213.6 kB / 396.1 MB, free: 4.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005263/0.5316, allocations: 292.8 kB / 396.4 MB, free: 4.211 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.372e-05/0.5316, allocations: 33.7 kB / 396.4 MB, free: 4.172 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002153/0.5319, allocations: 216.4 kB / 396.7 MB, free: 3.957 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.532, allocations: 118.4 kB / 396.8 MB, free: 3.84 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/0.5321, allocations: 8 kB / 396.8 MB, free: 3.832 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.5323, allocations: 350.8 kB / 397.1 MB, free: 3.48 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004738/0.5328, allocations: 112.8 kB / 397.2 MB, free: 3.371 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005016/0.5333, allocations: 190.7 kB / 397.4 MB, free: 3.164 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004711/0.5338, allocations: 180.1 kB / 397.6 MB, free: 2.977 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.388e-06/0.5338, allocations: 4 kB / 397.6 MB, free: 2.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001484/0.5353, allocations: 0.5173 MB / 398.1 MB, free: 2.426 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.306e-05/0.5354, allocations: 65.89 kB / 398.2 MB, free: 2.352 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.5354, allocations: 0 / 398.2 MB, free: 2.352 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008698/0.5363, allocations: 159.3 kB / 398.3 MB, free: 2.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003614/0.5367, allocations: 39.92 kB / 398.4 MB, free: 2.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007322/0.544, allocations: 5.991 MB / 404.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007014/0.5448, allocations: 55.72 kB / 404.4 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.3e-05/0.5449, allocations: 16 kB / 404.4 MB, free: 11.55 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition2,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,$PRE.booleanStep1.y,booleanStep1.y,$PRE.booleanStep1.nextTime,booleanStep1.nextTime,$PRE.booleanStep1.index,booleanStep1.index,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004047/0.5453, allocations: 197.6 kB / 404.6 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.5454, allocations: 47.47 kB / 404.7 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.5456, allocations: 44.06 kB / 404.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.5456, allocations: 4 kB / 404.7 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.5456, allocations: 7.953 kB / 404.7 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.5456, allocations: 3.984 kB / 404.7 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007769/0.5464, allocations: 441.2 kB / 405.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.5464, allocations: 0 / 405.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002397/0.5467, allocations: 19.98 kB / 405.2 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008053/0.5475, allocations: 159.3 kB / 405.3 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.074e-05/0.5476, allocations: 8 kB / 405.4 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007055/0.5547, allocations: 5.836 MB / 411.2 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5547, allocations: 0 / 411.2 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001758/0.5565, allocations: 0.5526 MB / 411.7 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003176/0.5569, allocations: 144.5 kB / 411.9 MB, free: 3.434 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.557, allocations: 16 kB / 411.9 MB, free: 3.418 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004816/0.5575, allocations: 39.97 kB / 411.9 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002271/0.5577, allocations: 55.92 kB / 412 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-05/0.5578, allocations: 12 kB / 412 MB, free: 3.312 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003928/0.5582, allocations: 231.2 kB / 412.2 MB, free: 3.094 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5582, allocations: 0 / 412.2 MB, free: 3.094 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001136/0.5593, allocations: 167.8 kB / 412.4 MB, free: 2.93 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealGTOThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulsStart) * Number of discrete states: 6 (IdealThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,$whenCondition1,IdealThyristor2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002283/0.5616, allocations: 1.12 MB / 413.5 MB, free: 1.762 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001894/0.5636, allocations: 0.9118 MB / 414.4 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/0.5636, allocations: 4.062 kB / 414.4 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2433/0.807, allocations: 0.7133 MB / 415.1 MB, free: 95.36 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001128/0.8082, allocations: 70.08 kB / 415.2 MB, free: 95.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007206/0.8154, allocations: 2.618 MB / 417.8 MB, free: 94.31 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005826/0.8161, allocations: 0.83 MB / 418.7 MB, free: 93.61 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000314/0.8164, allocations: 30.08 kB / 418.7 MB, free: 93.61 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002131/0.8167, allocations: 123.1 kB / 418.8 MB, free: 93.61 MB / 346.7 MB Notification: Performance of SimCode: time 1.292e-06/0.8167, allocations: 0 / 418.8 MB, free: 93.61 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03763/0.8543, allocations: 10.32 MB / 429.1 MB, free: 89.82 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/0.8546, allocations: 213.4 kB / 429.3 MB, free: 89.58 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.201/4.055, allocations: 4 kB / 429.3 MB, free: 89.58 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat