Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001027/0.001026, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007713/0.0007713, allocations: 82.72 kB / 262.5 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.725e-05/1.735e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07903/0.07907, allocations: 47.59 MB / 363.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2797/0.3588, allocations: 77.82 MB / 440.9 MB, free: 1.891 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002053/0.359, allocations: 66.22 kB / 441 MB, free: 1.859 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01258/0.3716, allocations: 4.91 MB / 445.9 MB, free: 13.78 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3717, allocations: 0 / 445.9 MB, free: 13.78 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.718e-05/0.3717, allocations: 12 kB / 445.9 MB, free: 13.77 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.0007876/0.3725, allocations: 0.5292 MB / 446.4 MB, free: 13.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.3725, allocations: 12.03 kB / 446.4 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.51e-05/0.3726, allocations: 41.61 kB / 446.5 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000327/0.373, allocations: 278.4 kB / 446.7 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.373, allocations: 11.95 kB / 446.7 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.52e-05/0.373, allocations: 16 kB / 446.8 MB, free: 12.85 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000325/0.3734, allocations: 171.2 kB / 446.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003747/0.3738, allocations: 234.2 kB / 447.2 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3738, allocations: 0 / 447.2 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.422e-05/0.3738, allocations: 0 / 447.2 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.3738, allocations: 12 kB / 447.2 MB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.3754, allocations: 1.093 MB / 448.3 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004253/0.3758, allocations: 195.4 kB / 448.4 MB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002449/0.3761, allocations: 129.2 kB / 448.6 MB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.3761, allocations: 15.27 kB / 448.6 MB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002241/0.3763, allocations: 151 kB / 448.7 MB, free: 11.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.403e-06/0.3764, allocations: 0 / 448.7 MB, free: 11.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.000501/0.3769, allocations: 244 kB / 449 MB, free: 11.05 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.835e-05/0.377, allocations: 132.5 kB / 449.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.3771, allocations: 197 kB / 449.3 MB, free: 10.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.337e-05/0.3772, allocations: 25.7 kB / 449.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.825e-05/0.3773, allocations: 166.2 kB / 449.5 MB, free: 10.55 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.435e-05/0.3773, allocations: 77.31 kB / 449.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.202e-05/0.3774, allocations: 0 / 449.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.3775, allocations: 336.8 kB / 449.9 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.587e-05/0.3776, allocations: 57.19 kB / 449.9 MB, free: 10.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.3777, allocations: 113 kB / 450.1 MB, free: 10.03 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001138/0.3778, allocations: 63.92 kB / 450.1 MB, free: 9.992 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3778, allocations: 4.031 kB / 450.1 MB, free: 9.988 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003513/0.3782, allocations: 246.8 kB / 450.4 MB, free: 9.805 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.3782, allocations: 4 kB / 450.4 MB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3782, allocations: 4 kB / 450.4 MB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002982/0.3785, allocations: 94.61 kB / 450.5 MB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.3787, allocations: 32.02 kB / 450.5 MB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001901/0.3806, allocations: 1.926 MB / 452.4 MB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001967/0.3808, allocations: 39.36 kB / 452.5 MB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.3808, allocations: 4 kB / 452.5 MB, free: 7.914 MB / 330.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.75e-05/0.3809, allocations: 105.9 kB / 452.6 MB, free: 7.805 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.82e-05/0.381, allocations: 27.67 kB / 452.6 MB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.42e-05/0.381, allocations: 32.64 kB / 452.6 MB, free: 7.758 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.381, allocations: 0 / 452.6 MB, free: 7.758 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.3811, allocations: 0 / 452.6 MB, free: 7.758 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.3811, allocations: 4 kB / 452.6 MB, free: 7.754 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000848/0.3819, allocations: 0.7306 MB / 453.4 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3819, allocations: 0 / 453.4 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.3821, allocations: 23.44 kB / 453.4 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002239/0.3823, allocations: 88.59 kB / 453.5 MB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.3823, allocations: 0 / 453.5 MB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.3841, allocations: 1.873 MB / 455.3 MB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3841, allocations: 0 / 455.3 MB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005055/0.3846, allocations: 428.7 kB / 455.8 MB, free: 4.98 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.3848, allocations: 119.5 kB / 455.9 MB, free: 4.859 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.3848, allocations: 7.984 kB / 455.9 MB, free: 4.852 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.385, allocations: 15.98 kB / 455.9 MB, free: 4.836 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.631e-05/0.3851, allocations: 27.77 kB / 455.9 MB, free: 4.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.3851, allocations: 14.44 kB / 455.9 MB, free: 4.801 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001131/0.3853, allocations: 160.2 kB / 456.1 MB, free: 4.672 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3853, allocations: 0 / 456.1 MB, free: 4.672 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000409/0.3857, allocations: 87.78 kB / 456.2 MB, free: 4.586 MB / 330.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.0001359/0.3858, allocations: 107.3 kB / 456.3 MB, free: 4.473 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005036/0.3863, allocations: 318.5 kB / 456.6 MB, free: 4.223 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3864, allocations: 4.062 kB / 456.6 MB, free: 4.219 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003183/0.3867, allocations: 239.5 kB / 456.8 MB, free: 4.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.387, allocations: 38.91 kB / 456.9 MB, free: 3.988 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007991/0.3878, allocations: 397.1 kB / 457.3 MB, free: 3.613 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.3881, allocations: 0.7755 MB / 458 MB, free: 2.809 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.008e-05/0.3882, allocations: 22.06 kB / 458.1 MB, free: 2.789 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.76e-05/0.3883, allocations: 23.42 kB / 458.1 MB, free: 2.766 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3883, allocations: 0 / 458.1 MB, free: 2.766 MB / 330.7 MB Notification: Performance of Templates: time 0.006986/0.3952, allocations: 3.827 MB / 461.9 MB, free: 14.95 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches