Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.577/1.577, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005643/0.0005646, allocations: 8 kB / 233.3 MB, free: 0.832 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0789/0.07951, allocations: 38.76 MB / 272.1 MB, free: 9.988 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3198/0.3993, allocations: 69.77 MB / 341.9 MB, free: 13.14 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/0.3996, allocations: 71.91 kB / 341.9 MB, free: 13.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0307/0.4304, allocations: 6.991 MB / 348.9 MB, free: 6.059 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4304, allocations: 0 / 348.9 MB, free: 6.059 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.181e-05/0.4305, allocations: 8 kB / 348.9 MB, free: 6.051 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.001841/0.4323, allocations: 0.7769 MB / 349.7 MB, free: 5.207 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.4324, allocations: 8.031 kB / 349.7 MB, free: 5.199 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001321/0.4325, allocations: 74.53 kB / 349.8 MB, free: 5.117 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.4327, allocations: 59.34 kB / 349.9 MB, free: 5.059 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005579/0.4332, allocations: 318.8 kB / 350.2 MB, free: 4.711 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.334e-05/0.4333, allocations: 32.95 kB / 350.2 MB, free: 4.68 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.222e-05/0.4334, allocations: 36 kB / 350.2 MB, free: 4.645 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.4345, allocations: 418.5 kB / 350.6 MB, free: 4.219 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.4345, allocations: 0 / 350.6 MB, free: 4.219 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.467e-05/0.4346, allocations: 20 kB / 350.7 MB, free: 4.199 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.766e-05/0.4347, allocations: 11.94 kB / 350.7 MB, free: 4.188 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009518/0.4356, allocations: 312 kB / 351 MB, free: 3.879 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003718/0.4394, allocations: 1.656 MB / 352.6 MB, free: 2.117 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009035/0.4403, allocations: 323 kB / 353 MB, free: 1.793 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.354e-05/0.4404, allocations: 4.281 kB / 353 MB, free: 1.789 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006517/0.441, allocations: 285.2 kB / 353.2 MB, free: 1.477 MB / 282.7 MB Notification: Performance of pre-optimization done (n=38): time 2.965e-06/0.441, allocations: 0 / 353.2 MB, free: 1.477 MB / 282.7 MB Notification: Performance of matching and sorting (n=38): time 0.003501/0.4446, allocations: 1.129 MB / 354.4 MB, free: 236 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001474/0.4447, allocations: 213.6 kB / 354.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004952/0.4453, allocations: 300.8 kB / 354.9 MB, free: 15.67 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.863e-05/0.4453, allocations: 33.7 kB / 354.9 MB, free: 15.63 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.4455, allocations: 259 kB / 355.2 MB, free: 15.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.4457, allocations: 118.4 kB / 355.3 MB, free: 15.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.979e-05/0.4457, allocations: 4 kB / 355.3 MB, free: 15.26 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.4459, allocations: 330.8 kB / 355.6 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004042/0.4463, allocations: 116.8 kB / 355.7 MB, free: 14.81 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000475/0.4468, allocations: 190.7 kB / 355.9 MB, free: 14.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004328/0.4472, allocations: 180.1 kB / 356.1 MB, free: 14.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.4472, allocations: 0 / 356.1 MB, free: 14.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001382/0.4486, allocations: 0.5057 MB / 356.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.56e-05/0.4487, allocations: 64.02 kB / 356.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.4487, allocations: 0 / 356.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008309/0.4496, allocations: 155.4 kB / 356.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003272/0.4499, allocations: 39.91 kB / 356.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007181/0.4571, allocations: 5.991 MB / 362.8 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006691/0.4578, allocations: 59.72 kB / 362.9 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.032e-05/0.4579, allocations: 16 kB / 362.9 MB, free: 7 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.000396/0.4584, allocations: 197.2 kB / 363.1 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.4585, allocations: 43.53 kB / 363.1 MB, free: 6.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001269/0.4586, allocations: 48.06 kB / 363.2 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.4586, allocations: 4 kB / 363.2 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.4587, allocations: 0 / 363.2 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/0.4587, allocations: 3.984 kB / 363.2 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007944/0.4595, allocations: 449.1 kB / 363.6 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.4595, allocations: 0 / 363.6 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002425/0.4598, allocations: 23.92 kB / 363.6 MB, free: 6.184 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008076/0.4606, allocations: 159.5 kB / 363.8 MB, free: 6.016 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-05/0.4607, allocations: 12 kB / 363.8 MB, free: 6.004 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006724/0.4674, allocations: 5.828 MB / 369.6 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.4675, allocations: 3.984 kB / 369.6 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.4692, allocations: 0.5554 MB / 370.2 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003119/0.4695, allocations: 140.5 kB / 370.3 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.4697, allocations: 15.98 kB / 370.4 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004956/0.4702, allocations: 35.98 kB / 370.4 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002411/0.4704, allocations: 59.84 kB / 370.4 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.91e-05/0.4705, allocations: 8 kB / 370.5 MB, free: 14.77 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003897/0.4709, allocations: 231.2 kB / 370.7 MB, free: 14.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4709, allocations: 0 / 370.7 MB, free: 14.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001096/0.472, allocations: 167.8 kB / 370.8 MB, free: 14.38 MB / 314.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.00218/0.4742, allocations: 1.135 MB / 372 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001781/0.476, allocations: 0.9084 MB / 372.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.4761, allocations: 0 / 372.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.4772, allocations: 0.7205 MB / 373.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006459/0.4779, allocations: 73.34 kB / 373.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00528/0.4832, allocations: 2.575 MB / 376.3 MB, free: 8.707 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004862/0.4837, allocations: 0.8356 MB / 377.1 MB, free: 7.848 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002969/0.4841, allocations: 123.4 kB / 377.2 MB, free: 7.727 MB / 314.7 MB Notification: Performance of SimCode: time 1.322e-06/0.4841, allocations: 0 / 377.2 MB, free: 7.727 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.902/3.387, allocations: 12.65 MB / 389.9 MB, free: 11.09 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat