Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.828/1.828, allocations: 171.2 MB / 186.1 MB, free: 1.027 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005209/0.000521, allocations: 8 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1143, allocations: 38.76 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3604/0.4747, allocations: 69.77 MB / 341.9 MB, free: 3.168 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003586/0.4751, allocations: 71.28 kB / 342 MB, free: 3.129 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03995/0.5151, allocations: 6.993 MB / 348.9 MB, free: 13.11 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.467e-06/0.5151, allocations: 0 / 348.9 MB, free: 13.11 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.787e-05/0.5152, allocations: 11.98 kB / 349 MB, free: 13.09 MB / 282.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.002488/0.5177, allocations: 0.7777 MB / 349.7 MB, free: 12.28 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.962e-05/0.5178, allocations: 8.031 kB / 349.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002137/0.518, allocations: 77.72 kB / 349.8 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.5182, allocations: 59.28 kB / 349.9 MB, free: 12.15 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007826/0.519, allocations: 313.1 kB / 350.2 MB, free: 11.84 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.425e-05/0.5191, allocations: 34.89 kB / 350.2 MB, free: 11.82 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.5192, allocations: 35.5 kB / 350.3 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.5208, allocations: 422.7 kB / 350.7 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/0.5209, allocations: 0 / 350.7 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.645e-05/0.521, allocations: 15.69 kB / 350.7 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.521, allocations: 11.94 kB / 350.7 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001341/0.5224, allocations: 315.8 kB / 351 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004823/0.5272, allocations: 1.641 MB / 352.6 MB, free: 9.789 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.5284, allocations: 329.8 kB / 353 MB, free: 9.59 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.318e-05/0.5285, allocations: 4.281 kB / 353 MB, free: 9.586 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008882/0.5294, allocations: 283.9 kB / 353.2 MB, free: 9.336 MB / 282.7 MB Notification: Performance of pre-optimization done (n=38): time 8.215e-06/0.5295, allocations: 4 kB / 353.3 MB, free: 9.332 MB / 282.7 MB Notification: Performance of matching and sorting (n=38): time 0.004855/0.5343, allocations: 1.124 MB / 354.4 MB, free: 8.246 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000169/0.5346, allocations: 216.2 kB / 354.6 MB, free: 7.988 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007096/0.5353, allocations: 299.1 kB / 354.9 MB, free: 7.742 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001067/0.5354, allocations: 36.52 kB / 354.9 MB, free: 7.707 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.5357, allocations: 207.5 kB / 355.1 MB, free: 7.547 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001959/0.5359, allocations: 122.5 kB / 355.2 MB, free: 7.445 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.536, allocations: 7.938 kB / 355.2 MB, free: 7.441 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.5362, allocations: 345 kB / 355.6 MB, free: 7.109 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005125/0.5367, allocations: 120.5 kB / 355.7 MB, free: 7.035 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004611/0.5372, allocations: 190 kB / 355.9 MB, free: 6.875 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004382/0.5376, allocations: 178.6 kB / 356.1 MB, free: 6.742 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.5377, allocations: 0 / 356.1 MB, free: 6.742 MB / 282.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001383/0.5391, allocations: 0.5225 MB / 356.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.315e-05/0.5392, allocations: 71.98 kB / 356.7 MB, free: 6.234 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.5392, allocations: 0 / 356.7 MB, free: 6.234 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008414/0.54, allocations: 158.3 kB / 356.8 MB, free: 6.105 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000337/0.5404, allocations: 31.92 kB / 356.8 MB, free: 6.074 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00715/0.5476, allocations: 5.994 MB / 362.8 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006733/0.5483, allocations: 62.94 kB / 362.9 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-05/0.5484, allocations: 15.44 kB / 362.9 MB, free: 15.9 MB / 298.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.0003764/0.5488, allocations: 200.3 kB / 363.1 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.614e-05/0.5489, allocations: 39.53 kB / 363.1 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.549, allocations: 43.88 kB / 363.2 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.549, allocations: 4 kB / 363.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.549, allocations: 4 kB / 363.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.549, allocations: 3.984 kB / 363.2 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007105/0.5498, allocations: 449.6 kB / 363.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.5498, allocations: 4 kB / 363.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002341/0.55, allocations: 27.92 kB / 363.7 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007344/0.5508, allocations: 155.2 kB / 363.8 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/0.5508, allocations: 2.75 kB / 363.8 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006887/0.5577, allocations: 5.844 MB / 369.7 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.5578, allocations: 0 / 369.7 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001781/0.5596, allocations: 0.5513 MB / 370.2 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003123/0.5599, allocations: 146.2 kB / 370.4 MB, free: 8.523 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.997e-05/0.5601, allocations: 7.562 kB / 370.4 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004914/0.5606, allocations: 39.03 kB / 370.4 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002284/0.5608, allocations: 50.61 kB / 370.5 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-05/0.5609, allocations: 14.81 kB / 370.5 MB, free: 8.434 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003826/0.5612, allocations: 235.6 kB / 370.7 MB, free: 8.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5613, allocations: 0 / 370.7 MB, free: 8.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001108/0.5624, allocations: 162.2 kB / 370.9 MB, free: 8.105 MB / 298.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.002164/0.5646, allocations: 1.121 MB / 372 MB, free: 7.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001829/0.5664, allocations: 0.91 MB / 372.9 MB, free: 6.207 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.5665, allocations: 0 / 372.9 MB, free: 6.207 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.5676, allocations: 0.7202 MB / 373.6 MB, free: 5.508 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006834/0.5684, allocations: 92.58 kB / 373.7 MB, free: 5.438 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005352/0.5737, allocations: 2.538 MB / 376.2 MB, free: 3.215 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005162/0.5743, allocations: 0.8355 MB / 377.1 MB, free: 2.359 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002835/0.5746, allocations: 35.27 kB / 377.1 MB, free: 2.328 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.5748, allocations: 119.6 kB / 377.2 MB, free: 2.297 MB / 298.7 MB Notification: Performance of SimCode: time 1.523e-06/0.5748, allocations: 0 / 377.2 MB, free: 2.297 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04825/0.6231, allocations: 10.3 MB / 387.5 MB, free: 8.066 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003384/0.6235, allocations: 220.9 kB / 387.7 MB, free: 7.824 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.023/3.647, allocations: 3.938 kB / 387.7 MB, free: 7.82 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat