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.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_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.145/2.145, allocations: 194.9 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003653/0.0003655, allocations: 8 kB / 264.1 MB, free: 2.508 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3358, allocations: 44.5 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1383/0.4742, allocations: 74.09 MB / 382.7 MB, free: 2.457 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/0.4745, allocations: 67.97 kB / 382.7 MB, free: 2.391 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0214/0.496, allocations: 4.937 MB / 387.7 MB, free: 13.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.496, allocations: 0 / 387.7 MB, free: 13.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.535e-05/0.4961, allocations: 4 kB / 387.7 MB, free: 13.43 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001465/0.4975, allocations: 0.5786 MB / 388.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.675e-05/0.4976, allocations: 12.03 kB / 388.2 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001305/0.4978, allocations: 66.53 kB / 388.3 MB, free: 12.71 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.4979, allocations: 31.62 kB / 388.3 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004722/0.4984, allocations: 274.4 kB / 388.6 MB, free: 12.37 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.099e-05/0.4984, allocations: 16.56 kB / 388.6 MB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.48e-05/0.4985, allocations: 32 kB / 388.7 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008353/0.4993, allocations: 284.5 kB / 388.9 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.4994, allocations: 0 / 388.9 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.011e-05/0.4994, allocations: 12 kB / 388.9 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.4995, allocations: 4 kB / 389 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008175/0.5003, allocations: 210.1 kB / 389.2 MB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002762/0.5031, allocations: 1.156 MB / 390.3 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007936/0.5039, allocations: 211.2 kB / 390.5 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.372e-05/0.504, allocations: 4.188 kB / 390.5 MB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005121/0.5045, allocations: 170.5 kB / 390.7 MB, free: 10.17 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 3.347e-06/0.5045, allocations: 0 / 390.7 MB, free: 10.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.002539/0.5071, allocations: 0.5241 MB / 391.2 MB, free: 9.617 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.5072, allocations: 110.8 kB / 391.3 MB, free: 9.484 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004087/0.5077, allocations: 220.1 kB / 391.5 MB, free: 9.262 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.41e-05/0.5077, allocations: 29.7 kB / 391.6 MB, free: 9.227 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.5079, allocations: 168.5 kB / 391.7 MB, free: 9.059 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.745e-05/0.508, allocations: 67 kB / 391.8 MB, free: 8.992 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.11e-05/0.5081, allocations: 7.938 kB / 391.8 MB, free: 8.984 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001966/0.5083, allocations: 342.8 kB / 392.1 MB, free: 8.641 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002998/0.5086, allocations: 75.97 kB / 392.2 MB, free: 8.566 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003282/0.5089, allocations: 116.5 kB / 392.3 MB, free: 8.434 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003011/0.5092, allocations: 85.19 kB / 392.4 MB, free: 8.352 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.5093, allocations: 0 / 392.4 MB, free: 8.352 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001008/0.5103, allocations: 300.7 kB / 392.7 MB, free: 8.051 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.5103, allocations: 4 kB / 392.7 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.5104, allocations: 0 / 392.7 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005687/0.5109, allocations: 96.81 kB / 392.8 MB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002845/0.5112, allocations: 35.95 kB / 392.8 MB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003678/0.5149, allocations: 1.96 MB / 394.8 MB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004459/0.5154, allocations: 35.83 kB / 394.8 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.301e-05/0.5155, allocations: 16.02 kB / 394.8 MB, free: 5.766 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: 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.0002897/0.5158, allocations: 141.8 kB / 395 MB, free: 5.617 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.36e-05/0.5159, allocations: 27.7 kB / 395 MB, free: 5.59 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.705e-05/0.516, allocations: 30.19 kB / 395 MB, free: 5.559 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.516, allocations: 0 / 395 MB, free: 5.559 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.516, allocations: 0 / 395 MB, free: 5.559 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.5161, allocations: 11.94 kB / 395.1 MB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006505/0.5167, allocations: 341.5 kB / 395.4 MB, free: 5.164 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/0.5167, allocations: 8 kB / 395.4 MB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002522/0.517, allocations: 27.92 kB / 395.4 MB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000463/0.5175, allocations: 84.8 kB / 395.5 MB, free: 5.043 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.574e-05/0.5175, allocations: 4 kB / 395.5 MB, free: 5.039 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003513/0.5211, allocations: 1.983 MB / 397.5 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.5211, allocations: 0 / 397.5 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.5225, allocations: 419.7 kB / 397.9 MB, free: 2.496 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000201/0.5227, allocations: 124.9 kB / 398 MB, free: 2.355 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.666e-05/0.5228, allocations: 8 kB / 398 MB, free: 2.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003153/0.5232, allocations: 27.94 kB / 398.1 MB, free: 2.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.5233, allocations: 31.94 kB / 398.1 MB, free: 2.289 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.733e-05/0.5234, allocations: 8 kB / 398.1 MB, free: 2.281 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002843/0.5237, allocations: 172.8 kB / 398.3 MB, free: 2.113 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5237, allocations: 0 / 398.3 MB, free: 2.113 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007115/0.5244, allocations: 95.84 kB / 398.4 MB, free: 2.02 MB / 330.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.001878/0.5263, allocations: 0.9677 MB / 399.3 MB, free: 1.02 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.5275, allocations: 358.7 kB / 399.7 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5275, allocations: 0 / 399.7 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006531/0.5281, allocations: 274.6 kB / 399.9 MB, free: 384 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005306/0.5287, allocations: 51.17 kB / 400 MB, free: 336 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004442/0.5332, allocations: 1.926 MB / 401.9 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004381/0.5337, allocations: 0.7752 MB / 402.7 MB, free: 13.54 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001853/0.5339, allocations: 18.23 kB / 402.7 MB, free: 13.52 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.534, allocations: 83.41 kB / 402.8 MB, free: 13.43 MB / 346.7 MB Notification: Performance of SimCode: time 1.423e-06/0.5341, allocations: 0 / 402.8 MB, free: 13.43 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04749/0.5816, allocations: 6.68 MB / 409.5 MB, free: 6.785 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003176/0.5819, allocations: 221.2 kB / 409.7 MB, free: 6.535 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.997/3.578, allocations: 0 / 409.7 MB, free: 6.535 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat