Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.96/1.96, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004985/0.0004985, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1395, allocations: 44.51 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4051/0.5447, allocations: 74.83 MB / 383.4 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/0.5451, allocations: 69.8 kB / 383.4 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02902/0.5741, allocations: 7.022 MB / 390.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5742, allocations: 0 / 390.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.962e-05/0.5742, allocations: 15.62 kB / 390.5 MB, free: 13.65 MB / 314.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.001599/0.5758, allocations: 0.7683 MB / 391.2 MB, free: 13.08 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.5759, allocations: 11.62 kB / 391.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001151/0.576, allocations: 76.02 kB / 391.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.5762, allocations: 56.53 kB / 391.4 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004789/0.5767, allocations: 321.5 kB / 391.7 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.5767, allocations: 33.31 kB / 391.7 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.729e-05/0.5768, allocations: 37.66 kB / 391.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001004/0.5778, allocations: 414.2 kB / 392.2 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.5778, allocations: 0 / 392.2 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.695e-05/0.5779, allocations: 21.06 kB / 392.2 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.5779, allocations: 11.75 kB / 392.2 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008336/0.5788, allocations: 303.6 kB / 392.5 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003097/0.5819, allocations: 1.644 MB / 394.1 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007815/0.5827, allocations: 338.4 kB / 394.5 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.396e-05/0.5828, allocations: 4.156 kB / 394.5 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005616/0.5834, allocations: 286.5 kB / 394.8 MB, free: 11.62 MB / 314.7 MB Notification: Performance of pre-optimization done (n=38): time 3.136e-06/0.5834, allocations: 3.875 kB / 394.8 MB, free: 11.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=38): time 0.003164/0.5866, allocations: 1.123 MB / 395.9 MB, free: 11.01 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.969e-05/0.5867, allocations: 220.1 kB / 396.1 MB, free: 10.76 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004188/0.5871, allocations: 298.1 kB / 396.4 MB, free: 10.65 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.178e-05/0.5872, allocations: 36.73 kB / 396.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.5873, allocations: 260.8 kB / 396.7 MB, free: 10.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.5874, allocations: 113.2 kB / 396.8 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.5875, allocations: 7.844 kB / 396.8 MB, free: 10.36 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.015e-05/0.5876, allocations: 332.7 kB / 397.1 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003551/0.5879, allocations: 118.6 kB / 397.2 MB, free: 10.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003996/0.5883, allocations: 186.8 kB / 397.4 MB, free: 9.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003768/0.5887, allocations: 179.5 kB / 397.6 MB, free: 9.91 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.5887, allocations: 0 / 397.6 MB, free: 9.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001169/0.5899, allocations: 0.5009 MB / 398.1 MB, free: 9.762 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.828e-05/0.59, allocations: 62.72 kB / 398.2 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.59, allocations: 0 / 398.2 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007534/0.5908, allocations: 158.9 kB / 398.3 MB, free: 9.664 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003146/0.5911, allocations: 34.03 kB / 398.3 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005624/0.5967, allocations: 5.99 MB / 404.3 MB, free: 20.26 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006865/0.5975, allocations: 56.75 kB / 404.4 MB, free: 20.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.832e-05/0.5976, allocations: 17.88 kB / 404.4 MB, free: 20.24 MB / 330.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.0003772/0.5979, allocations: 199.4 kB / 404.6 MB, free: 20.09 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.288e-05/0.598, allocations: 38.91 kB / 404.6 MB, free: 20.07 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.5982, allocations: 54.09 kB / 404.7 MB, free: 20.05 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.5982, allocations: 7.875 kB / 404.7 MB, free: 20.05 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.5982, allocations: 3.953 kB / 404.7 MB, free: 20.04 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.5982, allocations: 0 / 404.7 MB, free: 20.04 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005943/0.5988, allocations: 433.3 kB / 405.1 MB, free: 19.85 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.5988, allocations: 3.812 kB / 405.1 MB, free: 19.85 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.5991, allocations: 29.7 kB / 405.2 MB, free: 19.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000661/0.5997, allocations: 159.1 kB / 405.3 MB, free: 19.8 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.769e-05/0.5998, allocations: 6.875 kB / 405.3 MB, free: 19.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006206/0.606, allocations: 5.835 MB / 411.2 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.6061, allocations: 0 / 411.2 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/0.6076, allocations: 0.5445 MB / 411.7 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000258/0.6079, allocations: 149.5 kB / 411.9 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.407e-05/0.608, allocations: 9.625 kB / 411.9 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004633/0.6084, allocations: 37.66 kB / 411.9 MB, free: 14.26 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002085/0.6087, allocations: 62.98 kB / 412 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.533e-05/0.6087, allocations: 14.86 kB / 412 MB, free: 14.25 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003361/0.6091, allocations: 226 kB / 412.2 MB, free: 14.17 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6091, allocations: 3.938 kB / 412.2 MB, free: 14.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001013/0.6101, allocations: 171.2 kB / 412.4 MB, free: 14.15 MB / 330.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.001971/0.6121, allocations: 1.124 MB / 413.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001725/0.6138, allocations: 0.9076 MB / 414.4 MB, free: 12.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.6139, allocations: 0 / 414.4 MB, free: 12.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.615, allocations: 0.7265 MB / 415.1 MB, free: 12.33 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006483/0.6156, allocations: 69.52 kB / 415.2 MB, free: 12.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005421/0.6211, allocations: 2.645 MB / 417.8 MB, free: 11.12 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.6216, allocations: 0.8275 MB / 418.7 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000261/0.6219, allocations: 127.2 kB / 418.8 MB, free: 10.41 MB / 330.7 MB Notification: Performance of SimCode: time 1.502e-06/0.6219, allocations: 0 / 418.8 MB, free: 10.41 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.025/3.646, allocations: 12.65 MB / 431.4 MB, free: 4.652 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat