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.IdealTriacCircuit.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: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.717/1.717, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003795/0.0003797, allocations: 8 kB / 233.8 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08282/0.08323, allocations: 38.77 MB / 272.6 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3434/0.4267, allocations: 68.81 MB / 341.4 MB, free: 5.18 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.427, allocations: 74.84 kB / 341.4 MB, free: 5.141 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02068/0.4477, allocations: 4.856 MB / 346.3 MB, free: 1.027 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.4478, allocations: 0 / 346.3 MB, free: 1.027 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.454e-05/0.4478, allocations: 4 kB / 346.3 MB, free: 1.023 MB / 266.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.001318/0.4491, allocations: 0.5718 MB / 346.9 MB, free: 436 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.4492, allocations: 12.03 kB / 346.9 MB, free: 424 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.4493, allocations: 35.53 kB / 346.9 MB, free: 388 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004201/0.4498, allocations: 278.9 kB / 347.2 MB, free: 96 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.115e-05/0.4498, allocations: 19.52 kB / 347.2 MB, free: 84 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.63e-05/0.4499, allocations: 23.56 kB / 347.2 MB, free: 68 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007697/0.4507, allocations: 292.1 kB / 347.5 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.4507, allocations: 0 / 347.5 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.609e-05/0.4508, allocations: 10.69 kB / 347.5 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.4508, allocations: 8 kB / 347.5 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006627/0.4514, allocations: 200.5 kB / 347.7 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002654/0.4541, allocations: 1.154 MB / 348.9 MB, free: 14.7 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007862/0.455, allocations: 221.4 kB / 349.1 MB, free: 14.55 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.455, allocations: 192 / 349.1 MB, free: 14.55 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004563/0.4555, allocations: 172.4 kB / 349.3 MB, free: 14.4 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 1.994e-06/0.4555, allocations: 0 / 349.3 MB, free: 14.4 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.002351/0.4578, allocations: 0.5165 MB / 349.8 MB, free: 13.95 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.317e-05/0.458, allocations: 118.7 kB / 349.9 MB, free: 13.81 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003939/0.4584, allocations: 243.4 kB / 350.1 MB, free: 13.61 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.443e-05/0.4584, allocations: 32.77 kB / 350.2 MB, free: 13.57 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.4586, allocations: 224.5 kB / 350.4 MB, free: 13.37 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.028e-05/0.4587, allocations: 65.64 kB / 350.5 MB, free: 13.32 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.096e-05/0.4587, allocations: 3.375 kB / 350.5 MB, free: 13.32 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.4589, allocations: 329.5 kB / 350.8 MB, free: 12.99 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000292/0.4592, allocations: 75.84 kB / 350.9 MB, free: 12.95 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000324/0.4595, allocations: 125 kB / 351 MB, free: 12.84 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002816/0.4598, allocations: 72.48 kB / 351 MB, free: 12.8 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.4599, allocations: 4 kB / 351 MB, free: 12.8 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008658/0.4607, allocations: 289.5 kB / 351.3 MB, free: 12.59 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.4608, allocations: 11.98 kB / 351.3 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.4608, allocations: 0 / 351.3 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005772/0.4614, allocations: 104.5 kB / 351.4 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002619/0.4617, allocations: 24.05 kB / 351.5 MB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00325/0.4649, allocations: 1.964 MB / 353.4 MB, free: 10.69 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003998/0.4654, allocations: 34.92 kB / 353.5 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.82e-05/0.4654, allocations: 7.625 kB / 353.5 MB, free: 10.66 MB / 282.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.0002647/0.4657, allocations: 152.7 kB / 353.6 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.328e-05/0.4658, allocations: 23.72 kB / 353.6 MB, free: 10.49 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.208e-05/0.4659, allocations: 31.98 kB / 353.7 MB, free: 10.48 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.4659, allocations: 4 kB / 353.7 MB, free: 10.48 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4659, allocations: 0 / 353.7 MB, free: 10.48 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.4659, allocations: 3.984 kB / 353.7 MB, free: 10.47 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005196/0.4664, allocations: 352.2 kB / 354 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.4664, allocations: 0 / 354 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002339/0.4667, allocations: 23.98 kB / 354.1 MB, free: 10.13 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000453/0.4672, allocations: 96.09 kB / 354.1 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.4672, allocations: 3.125 kB / 354.2 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003305/0.4705, allocations: 1.967 MB / 356.1 MB, free: 8.262 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.4706, allocations: 4.25 kB / 356.1 MB, free: 8.258 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.4719, allocations: 425.3 kB / 356.5 MB, free: 7.945 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001901/0.4721, allocations: 123.8 kB / 356.7 MB, free: 7.816 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.413e-05/0.4722, allocations: 3.562 kB / 356.7 MB, free: 7.816 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003259/0.4725, allocations: 31.17 kB / 356.7 MB, free: 7.789 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.4727, allocations: 33.56 kB / 356.7 MB, free: 7.762 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.831e-05/0.4727, allocations: 5.5 kB / 356.7 MB, free: 7.758 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002777/0.473, allocations: 174.8 kB / 356.9 MB, free: 7.613 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.034e-06/0.473, allocations: 496 / 356.9 MB, free: 7.613 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006018/0.4736, allocations: 100.2 kB / 357 MB, free: 7.523 MB / 282.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.0002043/0.4738, allocations: 121.9 kB / 357.1 MB, free: 7.398 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.4749, allocations: 360.1 kB / 357.5 MB, free: 7.109 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.475, allocations: 0 / 357.5 MB, free: 7.109 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006113/0.4756, allocations: 273.7 kB / 357.7 MB, free: 6.879 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004837/0.4761, allocations: 51.33 kB / 357.8 MB, free: 6.84 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.4777, allocations: 0.7198 MB / 358.5 MB, free: 6.137 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004029/0.4781, allocations: 0.7755 MB / 359.3 MB, free: 5.336 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.74e-05/0.4782, allocations: 27.06 kB / 359.3 MB, free: 5.312 MB / 282.7 MB Notification: Performance of SimCode: time 9.82e-07/0.4782, allocations: 0 / 359.3 MB, free: 5.312 MB / 282.7 MB Notification: Performance of Templates: time 0.01062/0.4889, allocations: 4.504 MB / 363.8 MB, free: 0.8594 MB / 282.7 MB "Error: Could not read variable V.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat. Warning: Get data of variable V.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat failed! Error: Could not read variable idealTriac.idealThyristor.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat. Warning: Get data of variable idealTriac.idealThyristor.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat failed! Error: Could not read variable idealTriac.idealThyristor1.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat. Warning: Get data of variable idealTriac.idealThyristor1.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat failed! " Variables in the reference:time,idealTriac.capacitor.v,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off Variables in the result:R.LossPower,R.R,R.R_actual,R.T,R.T_heatPort,R.T_ref,R.alpha,R.i,R.n.i,R.n.v,R.p.i,R.p.v,R.v,V.V,V.freqHz,V.i,V.n.i,V.n.v,V.offset,V.p.i,V.p.v,V.phase,V.signalSource.amplitude,V.signalSource.freqHz,V.signalSource.offset,V.signalSource.phase,V.signalSource.startTime,V.signalSource.y,V.startTime,V.v,booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,ground.p.i,ground.p.v,idealTriac.Cdis,idealTriac.Goff,idealTriac.Rdis,idealTriac.Ron,idealTriac.Vknee,idealTriac.capacitor.C,der(idealTriac.capacitor.v),idealTriac.capacitor.i,idealTriac.capacitor.n.i,idealTriac.capacitor.n.v,idealTriac.capacitor.p.i,idealTriac.capacitor.p.v,idealTriac.capacitor.v,idealTriac.fire1,idealTriac.idealThyristor.Goff,idealTriac.idealThyristor.LossPower,idealTriac.idealThyristor.Ron,idealTriac.idealThyristor.T,idealTriac.idealThyristor.T_heatPort,idealTriac.idealThyristor.Vknee,idealTriac.idealThyristor.fire,idealTriac.idealThyristor.i,idealTriac.idealThyristor.n.i,idealTriac.idealThyristor.n.v,idealTriac.idealThyristor.off,idealTriac.idealThyristor.p.i,idealTriac.idealThyristor.p.v,idealTriac.idealThyristor.v,idealTriac.idealThyristor1.Goff,idealTriac.idealThyristor1.LossPower,idealTriac.idealThyristor1.Ron,idealTriac.idealThyristor1.T,idealTriac.idealThyristor1.T_heatPort,idealTriac.idealThyristor1.Vknee,idealTriac.idealThyristor1.fire,idealTriac.idealThyristor1.i,idealTriac.idealThyristor1.n.i,idealTriac.idealThyristor1.n.v,idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.p.i,idealTriac.idealThyristor1.p.v,idealTriac.idealThyristor1.v,idealTriac.n.i,idealTriac.n.v,idealTriac.p.i,idealTriac.p.v,idealTriac.resistor.LossPower,idealTriac.resistor.R,idealTriac.resistor.R_actual,idealTriac.resistor.T,idealTriac.resistor.T_heatPort,idealTriac.resistor.T_ref,idealTriac.resistor.alpha,idealTriac.resistor.i,idealTriac.resistor.n.i,idealTriac.resistor.n.v,idealTriac.resistor.p.i,idealTriac.resistor.p.v,idealTriac.resistor.v,time