Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") 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_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009654/0.0009654, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 221.3 MB / 235.5 MB, free: 2.898 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007882/0.0007882, allocations: 83.25 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.416e-05/2.418e-05, allocations: 7.984 kB / 343.8 MB, free: 4.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09577/0.09581, allocations: 50.42 MB / 394.2 MB, free: 1.855 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2941/0.3899, allocations: 79.64 MB / 473.9 MB, free: 7.906 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001904/0.3901, allocations: 75.8 kB / 474 MB, free: 7.836 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01264/0.4028, allocations: 5.123 MB / 479.1 MB, free: 2.691 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.4028, allocations: 0 / 479.1 MB, free: 2.691 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.4028, allocations: 4 kB / 479.1 MB, free: 2.688 MB / 346.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.0007505/0.4036, allocations: 0.5398 MB / 479.6 MB, free: 2.105 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.4036, allocations: 8.031 kB / 479.6 MB, free: 2.098 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.168e-05/0.4037, allocations: 35.53 kB / 479.7 MB, free: 2.062 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002957/0.404, allocations: 286.4 kB / 479.9 MB, free: 1.742 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.4041, allocations: 16.56 kB / 480 MB, free: 1.727 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.239e-05/0.4041, allocations: 24 kB / 480 MB, free: 1.703 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004421/0.4046, allocations: 272.6 kB / 480.3 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.4046, allocations: 0 / 480.3 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.4046, allocations: 11.95 kB / 480.3 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.4046, allocations: 8 kB / 480.3 MB, free: 1.402 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000333/0.405, allocations: 190.2 kB / 480.5 MB, free: 1.215 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001506/0.4065, allocations: 1.153 MB / 481.6 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004233/0.4069, allocations: 207.2 kB / 481.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000249/0.4072, allocations: 143.5 kB / 482 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.4072, allocations: 192 / 482 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002585/0.4075, allocations: 156.7 kB / 482.1 MB, free: 15.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.313e-06/0.4075, allocations: 0 / 482.1 MB, free: 15.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005213/0.408, allocations: 269.6 kB / 482.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.691e-05/0.4081, allocations: 132.5 kB / 482.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002052/0.4083, allocations: 221 kB / 482.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.4083, allocations: 29.7 kB / 482.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.654e-05/0.4084, allocations: 172.2 kB / 482.9 MB, free: 14.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.372e-05/0.4085, allocations: 70.98 kB / 483 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/0.4085, allocations: 4 kB / 483 MB, free: 14.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.4086, allocations: 338.8 kB / 483.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.4088, allocations: 60 kB / 483.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.4089, allocations: 113.1 kB / 483.5 MB, free: 13.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001279/0.409, allocations: 75.88 kB / 483.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.409, allocations: 4 kB / 483.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004084/0.4095, allocations: 274.2 kB / 483.8 MB, free: 13.63 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.4095, allocations: 5.25 kB / 483.8 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.4095, allocations: 0 / 483.8 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003037/0.4098, allocations: 92.75 kB / 483.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.4099, allocations: 36.02 kB / 484 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001976/0.4119, allocations: 1.979 MB / 485.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002036/0.4122, allocations: 39.83 kB / 486 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.4122, allocations: 12 kB / 486 MB, free: 11.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 9.245e-05/0.4123, allocations: 116.9 kB / 486.1 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.934e-05/0.4123, allocations: 27.67 kB / 486.1 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.103e-05/0.4124, allocations: 33.95 kB / 486.2 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.4124, allocations: 0 / 486.2 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.4124, allocations: 4 kB / 486.2 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.4124, allocations: 4.094 kB / 486.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009085/0.4134, allocations: 0.7997 MB / 487 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.4134, allocations: 0 / 487 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.4135, allocations: 19.98 kB / 487 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002441/0.4138, allocations: 85.36 kB / 487.1 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.4138, allocations: 8 kB / 487.1 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001855/0.4156, allocations: 1.94 MB / 489 MB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.4157, allocations: 4.094 kB / 489 MB, free: 8.086 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005321/0.4162, allocations: 457.7 kB / 489.5 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.4163, allocations: 120.8 kB / 489.6 MB, free: 7.477 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.4164, allocations: 8 kB / 489.6 MB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.4166, allocations: 19.98 kB / 489.6 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.052e-05/0.4167, allocations: 35.91 kB / 489.7 MB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.4167, allocations: 12.14 kB / 489.7 MB, free: 7.402 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001385/0.4168, allocations: 177.3 kB / 489.8 MB, free: 7.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4168, allocations: 0 / 489.8 MB, free: 7.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003986/0.4173, allocations: 91.83 kB / 489.9 MB, free: 7.141 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * 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.0001374/0.4174, allocations: 107.2 kB / 490 MB, free: 7.027 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005546/0.418, allocations: 354.7 kB / 490.4 MB, free: 6.668 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.418, allocations: 0 / 490.4 MB, free: 6.668 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003311/0.4183, allocations: 246.4 kB / 490.6 MB, free: 6.414 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.4186, allocations: 55.06 kB / 490.7 MB, free: 6.363 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008045/0.4194, allocations: 404.7 kB / 491.1 MB, free: 5.949 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/0.4197, allocations: 0.7716 MB / 491.8 MB, free: 5.152 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.593e-05/0.4199, allocations: 22.06 kB / 491.9 MB, free: 5.133 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.08e-05/0.4199, allocations: 19.42 kB / 491.9 MB, free: 5.113 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4199, allocations: 0 / 491.9 MB, free: 5.113 MB / 362.7 MB Notification: Performance of Templates: time 0.007784/0.4277, allocations: 4.298 MB / 496.2 MB, free: 0.8711 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches