Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009069/0.000907, allocations: 94.81 kB / 17.31 MB, free: 6.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009761/0.0009761, allocations: 177.3 kB / 18.21 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002183/0.0002183, allocations: 8.562 kB / 302.1 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07268/0.07291, allocations: 50.42 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003471/0.07642, allocations: 3.678 MB / 356.2 MB, free: 4 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.07773, allocations: 0.9934 MB / 357.2 MB, free: 15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/0.0779, allocations: 8 kB / 357.2 MB, free: 15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.07806, allocations: 59.45 kB / 357.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002725/0.07834, allocations: 158.8 kB / 357.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000356/0.0787, allocations: 191.8 kB / 357.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006079/0.07932, allocations: 0.7548 MB / 358.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002428/0.07957, allocations: 153.7 kB / 358.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002773/0.07986, allocations: 259 kB / 358.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003346/0.0802, allocations: 302.7 kB / 359 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.164e-05/0.08028, allocations: 36 kB / 359.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.676e-05/0.08037, allocations: 35.94 kB / 359.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.53e-05/0.08047, allocations: 119.4 kB / 359.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002455/0.08072, allocations: 304.2 kB / 359.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004746/0.0812, allocations: 0.6348 MB / 360.1 MB, free: 12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.08121, allocations: 4 kB / 360.2 MB, free: 12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.08122, allocations: 0 / 360.2 MB, free: 12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.08123, allocations: 0 / 360.2 MB, free: 12 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002416/0.08365, allocations: 0.9838 MB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.08369, allocations: 8.031 kB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.08381, allocations: 64.28 kB / 361.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.08428, allocations: 409.9 kB / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.08433, allocations: 29.38 kB / 361.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.977e-05/0.08441, allocations: 40.38 kB / 361.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.08591, allocations: 0.6422 MB / 362.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.08593, allocations: 0 / 362.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.545e-05/0.08599, allocations: 19.98 kB / 362.3 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.08601, allocations: 12 kB / 362.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002072/0.08809, allocations: 0.7065 MB / 363.1 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003529/0.09163, allocations: 2.2 MB / 365.3 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004237/0.09588, allocations: 0.9994 MB / 366.3 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/0.097, allocations: 444 kB / 366.7 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.09704, allocations: 8.328 kB / 366.7 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001202/0.09825, allocations: 462.7 kB / 367.1 MB, free: 4.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.673e-06/0.09827, allocations: 0 / 367.1 MB, free: 4.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01578/0.114, allocations: 2.648 MB / 369.8 MB, free: 2.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.1141, allocations: 81.11 kB / 369.9 MB, free: 1.973 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000418/0.1145, allocations: 410 kB / 370.3 MB, free: 1.566 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.679e-05/0.1146, allocations: 33.7 kB / 370.3 MB, free: 1.527 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001515/0.1147, allocations: 236.6 kB / 370.5 MB, free: 1.289 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.1149, allocations: 134 kB / 370.7 MB, free: 1.156 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.837e-05/0.1149, allocations: 37.7 kB / 370.7 MB, free: 1.113 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.1151, allocations: 362.7 kB / 371.1 MB, free: 0.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.1161, allocations: 332.6 kB / 371.4 MB, free: 432 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/0.1171, allocations: 378 kB / 371.8 MB, free: 48 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1373/0.2545, allocations: 0.6651 MB / 372.4 MB, free: 24.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.2545, allocations: 1.438 kB / 372.4 MB, free: 24.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004031/0.2585, allocations: 1.104 MB / 373.5 MB, free: 24.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.502e-05/0.2586, allocations: 35.12 kB / 373.6 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.2586, allocations: 0 / 373.6 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001318/0.2599, allocations: 419.5 kB / 374 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005232/0.2605, allocations: 108.8 kB / 374.1 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007934/0.2684, allocations: 3.499 MB / 377.6 MB, free: 23.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007019/0.2691, allocations: 114.7 kB / 377.7 MB, free: 23.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.205e-05/0.2692, allocations: 15.81 kB / 377.7 MB, free: 23.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002144/0.2694, allocations: 178.5 kB / 377.9 MB, free: 23.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.401e-05/0.2695, allocations: 50.94 kB / 377.9 MB, free: 22.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/0.2696, allocations: 51.25 kB / 378 MB, free: 22.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.2696, allocations: 6.094 kB / 378 MB, free: 22.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.2696, allocations: 0 / 378 MB, free: 22.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.2696, allocations: 2.203 kB / 378 MB, free: 22.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006003/0.2703, allocations: 0.6116 MB / 378.6 MB, free: 22.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2703, allocations: 7.766 kB / 378.6 MB, free: 22.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005156/0.2708, allocations: 95.16 kB / 378.7 MB, free: 22.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.272, allocations: 427.4 kB / 379.1 MB, free: 22.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-05/0.272, allocations: 7.984 kB / 379.1 MB, free: 22.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007666/0.2797, allocations: 3.484 MB / 382.6 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2797, allocations: 5.688 kB / 382.6 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006313/0.286, allocations: 1.659 MB / 384.3 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001862/0.2862, allocations: 179.5 kB / 384.4 MB, free: 19.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.747e-05/0.2863, allocations: 12.06 kB / 384.5 MB, free: 19.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00064/0.287, allocations: 90.23 kB / 384.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.2871, allocations: 47.59 kB / 384.6 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.773e-05/0.2872, allocations: 14.02 kB / 384.6 MB, free: 19.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000299/0.2875, allocations: 293.6 kB / 384.9 MB, free: 19.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2875, allocations: 1.281 kB / 384.9 MB, free: 19.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005792/0.2881, allocations: 174.3 kB / 385.1 MB, free: 19.42 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001241/0.2882, allocations: 116.4 kB / 385.2 MB, free: 19.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002659/0.2908, allocations: 1.011 MB / 386.2 MB, free: 18.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2909, allocations: 0 / 386.2 MB, free: 18.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001562/0.2924, allocations: 0.5932 MB / 386.8 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000484/0.2929, allocations: 86.56 kB / 386.9 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.2959, allocations: 1.499 MB / 388.4 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.2961, allocations: 0.8364 MB / 389.2 MB, free: 17.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.2963, allocations: 27.69 kB / 389.2 MB, free: 17.02 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2963, allocations: 0 / 389.2 MB, free: 17.02 MB / 302.1 MB Notification: Performance of Templates: time 0.0109/0.3072, allocations: 9.798 MB / 399 MB, free: 9.934 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches