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.IdealTriacCircuit.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.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.897/1.897, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003472, allocations: 11.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1101, allocations: 44.51 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4319/0.542, allocations: 74.08 MB / 382.6 MB, free: 14.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.5423, allocations: 74.08 kB / 382.7 MB, free: 14.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01901/0.5614, allocations: 4.928 MB / 387.6 MB, free: 14.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5614, allocations: 0 / 387.6 MB, free: 14.18 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.379e-05/0.5614, allocations: 10.31 kB / 387.6 MB, free: 14.18 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001215/0.5627, allocations: 0.5712 MB / 388.2 MB, free: 13.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.5627, allocations: 9.656 kB / 388.2 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.085e-05/0.5628, allocations: 65.48 kB / 388.3 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.111e-05/0.5629, allocations: 33.88 kB / 388.3 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003713/0.5633, allocations: 278.9 kB / 388.6 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.5633, allocations: 18.59 kB / 388.6 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.79e-05/0.5634, allocations: 23.03 kB / 388.6 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006717/0.5641, allocations: 289.1 kB / 388.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.5641, allocations: 8 kB / 388.9 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.189e-05/0.5642, allocations: 10.41 kB / 388.9 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.5642, allocations: 3.875 kB / 388.9 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005778/0.5648, allocations: 211.5 kB / 389.1 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002136/0.5669, allocations: 1.158 MB / 390.3 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006772/0.5677, allocations: 211.1 kB / 390.5 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.5677, allocations: 192 / 390.5 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003893/0.5681, allocations: 170 kB / 390.7 MB, free: 12.65 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 2.124e-06/0.5681, allocations: 4 kB / 390.7 MB, free: 12.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.002077/0.5702, allocations: 0.5235 MB / 391.2 MB, free: 12.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.5703, allocations: 106.7 kB / 391.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002656/0.5705, allocations: 217.8 kB / 391.5 MB, free: 12.26 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.5706, allocations: 36.39 kB / 391.5 MB, free: 12.22 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.442e-05/0.5707, allocations: 230.4 kB / 391.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.892e-05/0.5708, allocations: 72.14 kB / 391.8 MB, free: 12 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-05/0.5708, allocations: 2.875 kB / 391.8 MB, free: 12 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.823e-05/0.5709, allocations: 325.2 kB / 392.2 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002274/0.5711, allocations: 75.03 kB / 392.2 MB, free: 11.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002583/0.5714, allocations: 119.9 kB / 392.3 MB, free: 11.63 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002442/0.5716, allocations: 85.36 kB / 392.4 MB, free: 11.63 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.5717, allocations: 0 / 392.4 MB, free: 11.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007051/0.5724, allocations: 284.1 kB / 392.7 MB, free: 11.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.5724, allocations: 5.781 kB / 392.7 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.5724, allocations: 0 / 392.7 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004562/0.5729, allocations: 87.83 kB / 392.8 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.5731, allocations: 34.83 kB / 392.8 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002599/0.5757, allocations: 1.971 MB / 394.8 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003535/0.5761, allocations: 33.14 kB / 394.8 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.5762, allocations: 7.75 kB / 394.8 MB, free: 10.17 MB / 314.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: 8 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001937/0.5764, allocations: 145.6 kB / 395 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.99e-05/0.5764, allocations: 23.38 kB / 395 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.472e-05/0.5765, allocations: 35.58 kB / 395 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.5765, allocations: 3.875 kB / 395 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.5765, allocations: 0 / 395 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.5765, allocations: 3.953 kB / 395.1 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003938/0.5769, allocations: 357.8 kB / 395.4 MB, free: 9.828 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.577, allocations: 0 / 395.4 MB, free: 9.828 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/0.5772, allocations: 18.31 kB / 395.4 MB, free: 9.828 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003698/0.5776, allocations: 90.8 kB / 395.5 MB, free: 9.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.5776, allocations: 112 / 395.5 MB, free: 9.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002492/0.5801, allocations: 1.978 MB / 397.5 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.5801, allocations: 0 / 397.5 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.5812, allocations: 431.2 kB / 397.9 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.5814, allocations: 127.5 kB / 398 MB, free: 8.219 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.966e-05/0.5814, allocations: 7.625 kB / 398 MB, free: 8.219 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002811/0.5817, allocations: 18.67 kB / 398.1 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.5819, allocations: 40.62 kB / 398.1 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.5819, allocations: 10.16 kB / 398.1 MB, free: 8.211 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001935/0.5821, allocations: 168.8 kB / 398.3 MB, free: 8.133 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5821, allocations: 0 / 398.3 MB, free: 8.133 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005766/0.5827, allocations: 94.77 kB / 398.4 MB, free: 8.125 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,booleanPulse.pulsStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001326/0.584, allocations: 0.965 MB / 399.3 MB, free: 7.492 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008891/0.5849, allocations: 361.8 kB / 399.7 MB, free: 7.355 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.585, allocations: 0 / 399.7 MB, free: 7.355 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005209/0.5855, allocations: 273.5 kB / 399.9 MB, free: 7.227 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004998/0.586, allocations: 53.84 kB / 400 MB, free: 7.215 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003377/0.5894, allocations: 1.948 MB / 401.9 MB, free: 6.203 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.5897, allocations: 0.771 MB / 402.7 MB, free: 5.496 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001726/0.5898, allocations: 83.58 kB / 402.8 MB, free: 5.488 MB / 314.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5899, allocations: 0 / 402.8 MB, free: 5.488 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.574/3.164, allocations: 5.775 MB / 408.6 MB, free: 4.746 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat