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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009836/0.0009836, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001369/0.002353, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008303/0.0008303, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001176/0.002006, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9314/0.9314, allocations: 173.4 MB / 185.9 MB, free: 8.914 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08411/1.015, allocations: 52.5 MB / 238.4 MB, free: 4.355 MB / 234.7 MB " [Timeout remaining time 179] 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=2000,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=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 239.7 MB, free: 3.066 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.705e-05/1.833e-05, allocations: 7.438 kB / 239.7 MB, free: 3.059 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003299/0.003317, allocations: 4.009 MB / 243.8 MB, free: 15.04 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.004815, allocations: 1.036 MB / 244.8 MB, free: 13.99 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000237/0.005052, allocations: 11.94 kB / 244.8 MB, free: 13.98 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.005191, allocations: 87.14 kB / 244.9 MB, free: 13.89 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002495/0.005441, allocations: 194.3 kB / 245.1 MB, free: 13.7 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003702/0.005811, allocations: 227.6 kB / 245.3 MB, free: 13.48 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006861/0.006497, allocations: 0.8286 MB / 246.1 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.006685, allocations: 118.2 kB / 246.2 MB, free: 12.53 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005886/0.007274, allocations: 0.533 MB / 246.8 MB, free: 11.99 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002988/0.007573, allocations: 283.2 kB / 247.1 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.626e-05/0.007649, allocations: 76 kB / 247.1 MB, free: 11.64 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.494e-05/0.007724, allocations: 76 kB / 247.2 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.547e-05/0.0078, allocations: 111.7 kB / 247.3 MB, free: 11.46 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001526/0.007952, allocations: 183.7 kB / 247.5 MB, free: 11.28 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003793/0.008331, allocations: 478.4 kB / 248 MB, free: 10.81 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.089e-05/0.008342, allocations: 0 / 248 MB, free: 10.81 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.008343, allocations: 0 / 248 MB, free: 10.81 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.008356, allocations: 0 / 248 MB, free: 10.81 MB / 250.7 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.001215/0.009571, allocations: 0.9685 MB / 248.9 MB, free: 9.809 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.723e-05/0.009598, allocations: 8.031 kB / 248.9 MB, free: 9.801 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.594e-05/0.009694, allocations: 72.88 kB / 249 MB, free: 9.73 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003074/0.01, allocations: 271.7 kB / 249.3 MB, free: 9.438 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.01003, allocations: 29.38 kB / 249.3 MB, free: 9.41 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.843e-05/0.01008, allocations: 36.38 kB / 249.3 MB, free: 9.375 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004849/0.01056, allocations: 444.3 kB / 249.8 MB, free: 8.906 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.01058, allocations: 192 / 249.8 MB, free: 8.906 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.647e-05/0.0106, allocations: 12.38 kB / 249.8 MB, free: 8.895 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.01061, allocations: 11.94 kB / 249.8 MB, free: 8.883 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001999/0.01081, allocations: 138.8 kB / 249.9 MB, free: 8.75 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.01222, allocations: 1.367 MB / 251.3 MB, free: 7.32 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007633/0.01298, allocations: 339.2 kB / 251.6 MB, free: 6.98 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.01314, allocations: 121.5 kB / 251.7 MB, free: 6.859 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.01317, allocations: 8.328 kB / 251.8 MB, free: 6.852 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002359/0.0134, allocations: 240.3 kB / 252 MB, free: 6.594 MB / 250.7 MB Notification: Performance of pre-optimization done (n=40): time 1.462e-06/0.0134, allocations: 0 / 252 MB, free: 6.594 MB / 250.7 MB Notification: Performance of matching and sorting (n=40): time 0.002851/0.01626, allocations: 1.013 MB / 253 MB, free: 5.57 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.8e-05/0.01628, allocations: 59.41 kB / 253.1 MB, free: 5.5 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001883/0.01647, allocations: 339.3 kB / 253.4 MB, free: 5.156 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.0165, allocations: 29.7 kB / 253.4 MB, free: 5.121 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.057e-05/0.01658, allocations: 193.8 kB / 253.6 MB, free: 4.93 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.103e-05/0.01665, allocations: 138.8 kB / 253.7 MB, free: 4.793 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.744e-05/0.01674, allocations: 70.03 kB / 253.8 MB, free: 4.715 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.008e-05/0.01683, allocations: 358.7 kB / 254.2 MB, free: 4.355 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.69e-05/0.01693, allocations: 74.56 kB / 254.2 MB, free: 4.277 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.01705, allocations: 153.8 kB / 254.4 MB, free: 4.102 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001917/0.01724, allocations: 189.9 kB / 254.6 MB, free: 3.902 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.01724, allocations: 0 / 254.6 MB, free: 3.902 MB / 250.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005895/0.01783, allocations: 404.2 kB / 255 MB, free: 3.488 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.498e-05/0.01786, allocations: 29.7 kB / 255 MB, free: 3.453 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.01787, allocations: 4 kB / 255 MB, free: 3.449 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003481/0.01822, allocations: 200.6 kB / 255.2 MB, free: 3.25 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002088/0.01843, allocations: 83.88 kB / 255.3 MB, free: 3.168 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002158/0.02059, allocations: 2.003 MB / 257.3 MB, free: 1.074 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001976/0.02078, allocations: 55.86 kB / 257.3 MB, free: 1.02 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.303e-05/0.02081, allocations: 19.97 kB / 257.4 MB, free: 1 MB / 250.7 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.0001052/0.02091, allocations: 129.8 kB / 257.5 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.941e-05/0.02096, allocations: 43.95 kB / 257.5 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.255e-05/0.02101, allocations: 52.38 kB / 257.6 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.02102, allocations: 4 kB / 257.6 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.02102, allocations: 3.938 kB / 257.6 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.02102, allocations: 7.984 kB / 257.6 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002499/0.02127, allocations: 293.9 kB / 257.9 MB, free: 460 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.02128, allocations: 0 / 257.9 MB, free: 460 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001877/0.02146, allocations: 71.88 kB / 257.9 MB, free: 388 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.491e-05/0.02156, allocations: 51.64 kB / 258 MB, free: 336 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003082/0.02187, allocations: 184.7 kB / 258.2 MB, free: 148 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/0.02189, allocations: 4 kB / 258.2 MB, free: 144 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002024/0.02391, allocations: 2.012 MB / 260.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.02391, allocations: 0 / 260.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00099/0.0249, allocations: 0.5169 MB / 260.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.963e-05/0.02494, allocations: 12 kB / 260.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001586/0.0251, allocations: 43.89 kB / 260.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.0252, allocations: 59.84 kB / 260.8 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.02522, allocations: 11.98 kB / 260.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.662e-05/0.02532, allocations: 136.7 kB / 261 MB, free: 13.25 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02532, allocations: 4 kB / 261 MB, free: 13.25 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003331/0.02565, allocations: 171.9 kB / 261.1 MB, free: 13.08 MB / 266.7 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.0001142/0.02576, allocations: 100.3 kB / 261.2 MB, free: 12.97 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005712/0.02633, allocations: 496.5 kB / 261.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/0.02635, allocations: 8 kB / 261.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003616/0.02671, allocations: 355.2 kB / 262.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004293/0.02714, allocations: 0.8719 MB / 262.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003202/0.03034, allocations: 0.9443 MB / 263.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.478e-05/0.03044, allocations: 125.6 kB / 264 MB, free: 9.922 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001292/0.03056, allocations: 35.31 kB / 264 MB, free: 9.887 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/0.03075, allocations: 131.3 kB / 264.2 MB, free: 9.758 MB / 266.7 MB Notification: Performance of SimCode: time 1.352e-06/0.03076, allocations: 0 / 264.2 MB, free: 9.758 MB / 266.7 MB Notification: Performance of Templates: time 0.1027/0.1335, allocations: 12.97 MB / 277.2 MB, free: 27.62 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2064191112294793]