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.001062/0.001062, allocations: 175.8 kB / 17.4 MB, free: 4.309 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.496/1.496, allocations: 223.3 MB / 241.4 MB, free: 9.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008753/0.0008755, allocations: 97.09 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003441/0.0003442, allocations: 15.92 kB / 352.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3281, allocations: 50.41 MB / 402.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1179/0.4461, allocations: 79.76 MB / 482.5 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003519/0.4465, allocations: 67.97 kB / 482.6 MB, free: 496 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01393/0.4605, allocations: 5.129 MB / 487.7 MB, free: 11.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.4605, allocations: 0 / 487.7 MB, free: 11.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.412e-05/0.4606, allocations: 8 kB / 487.7 MB, free: 11.32 MB / 362.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.001123/0.4617, allocations: 0.5788 MB / 488.3 MB, free: 10.69 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.4617, allocations: 8.031 kB / 488.3 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.4619, allocations: 36.78 kB / 488.3 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004103/0.4623, allocations: 279.6 kB / 488.6 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.4623, allocations: 20.88 kB / 488.6 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.491e-05/0.4624, allocations: 28.31 kB / 488.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005458/0.463, allocations: 285.1 kB / 488.9 MB, free: 9.996 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.463, allocations: 4.172 kB / 488.9 MB, free: 9.992 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.409e-05/0.4631, allocations: 19.94 kB / 489 MB, free: 9.973 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.4631, allocations: 8 kB / 489 MB, free: 9.965 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004435/0.4635, allocations: 210.1 kB / 489.2 MB, free: 9.758 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.4656, allocations: 1.144 MB / 490.3 MB, free: 8.535 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000556/0.4661, allocations: 215.6 kB / 490.5 MB, free: 8.316 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003581/0.4665, allocations: 140.8 kB / 490.7 MB, free: 8.176 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.4666, allocations: 7.984 kB / 490.7 MB, free: 8.168 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003542/0.4669, allocations: 170.7 kB / 490.8 MB, free: 7.977 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 2.815e-06/0.4669, allocations: 0 / 490.8 MB, free: 7.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001622/0.4686, allocations: 0.5561 MB / 491.4 MB, free: 7.395 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.472e-05/0.4687, allocations: 132.5 kB / 491.5 MB, free: 7.234 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/0.469, allocations: 240.9 kB / 491.8 MB, free: 6.992 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.583e-05/0.469, allocations: 33.7 kB / 491.8 MB, free: 6.953 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.4692, allocations: 164.4 kB / 491.9 MB, free: 6.789 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.13e-05/0.4693, allocations: 75.03 kB / 492 MB, free: 6.715 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.545e-05/0.4693, allocations: 8 kB / 492 MB, free: 6.707 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.4694, allocations: 330.8 kB / 492.4 MB, free: 6.375 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.4696, allocations: 67.98 kB / 492.4 MB, free: 6.309 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.4698, allocations: 121.1 kB / 492.5 MB, free: 6.172 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003205/0.4701, allocations: 176 kB / 492.7 MB, free: 5.988 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4702, allocations: 3.938 kB / 492.7 MB, free: 5.984 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006114/0.4708, allocations: 298.9 kB / 493 MB, free: 5.684 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.4708, allocations: 4 kB / 493 MB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.4708, allocations: 7.922 kB / 493 MB, free: 5.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003759/0.4712, allocations: 100.7 kB / 493.1 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.4714, allocations: 23.98 kB / 493.1 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002713/0.4741, allocations: 1.975 MB / 495.1 MB, free: 3.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.4744, allocations: 43.73 kB / 495.2 MB, free: 3.387 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/0.4744, allocations: 8.062 kB / 495.2 MB, free: 3.379 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 () * Number of clocked 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 0.0002399/0.4746, allocations: 152.5 kB / 495.3 MB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.261e-05/0.4747, allocations: 23.72 kB / 495.3 MB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.351e-05/0.4748, allocations: 30.19 kB / 495.4 MB, free: 3.168 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.4748, allocations: 0 / 495.4 MB, free: 3.168 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4748, allocations: 3.984 kB / 495.4 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.4748, allocations: 7.938 kB / 495.4 MB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.476, allocations: 0.8076 MB / 496.2 MB, free: 2.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.476, allocations: 0 / 496.2 MB, free: 2.285 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.4761, allocations: 27.92 kB / 496.2 MB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002709/0.4764, allocations: 92.78 kB / 496.3 MB, free: 2.164 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.4764, allocations: 11.97 kB / 496.3 MB, free: 2.152 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002371/0.4788, allocations: 1.94 MB / 498.3 MB, free: 84 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.4788, allocations: 0 / 498.3 MB, free: 84 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007432/0.4796, allocations: 459.8 kB / 498.7 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.4798, allocations: 124.7 kB / 498.8 MB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.089e-05/0.4798, allocations: 8 kB / 498.8 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002032/0.48, allocations: 24.05 kB / 498.9 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.4801, allocations: 31.89 kB / 498.9 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.4802, allocations: 19.92 kB / 498.9 MB, free: 15.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001968/0.4804, allocations: 172.5 kB / 499.1 MB, free: 15.22 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4804, allocations: 0 / 499.1 MB, free: 15.22 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005317/0.4809, allocations: 87.84 kB / 499.2 MB, free: 15.14 MB / 378.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) * 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.0002557/0.4812, allocations: 106.6 kB / 499.3 MB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008822/0.4821, allocations: 366.4 kB / 499.6 MB, free: 14.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.4821, allocations: 0 / 499.6 MB, free: 14.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000523/0.4826, allocations: 278.6 kB / 499.9 MB, free: 14.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000536/0.4832, allocations: 56.42 kB / 499.9 MB, free: 14.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.4848, allocations: 0.7195 MB / 0.4889 GB, free: 13.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005239/0.4853, allocations: 0.7599 MB / 0.4897 GB, free: 12.78 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001335/0.4854, allocations: 18.3 kB / 0.4897 GB, free: 12.76 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.327e-05/0.4855, allocations: 23.42 kB / 0.4897 GB, free: 12.74 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4855, allocations: 0 / 0.4897 GB, free: 12.74 MB / 378.7 MB Notification: Performance of Templates: time 0.01085/0.4964, allocations: 4.339 MB / 0.494 GB, free: 8.469 MB / 378.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/jenkins1/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