Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001566/0.001566, allocations: 112.5 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001841/0.001841, allocations: 207.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.447/1.447, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 43.94 kB / 374.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1203, allocations: 53.35 MB / 427.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006044/0.1263, allocations: 4.106 MB / 431.6 MB, free: 132 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2402/0.3665, allocations: 1.058 MB / 432.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000372/0.3669, allocations: 9.75 kB / 432.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003429/0.3672, allocations: 88.41 kB / 432.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003548/0.3676, allocations: 191.5 kB / 432.9 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006018/0.3682, allocations: 230.1 kB / 433.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008879/0.3691, allocations: 0.8145 MB / 434 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002553/0.3693, allocations: 122.4 kB / 434.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005142/0.3698, allocations: 332.2 kB / 434.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003777/0.3702, allocations: 358.6 kB / 434.8 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001267/0.3703, allocations: 82.62 kB / 434.9 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.3705, allocations: 89.52 kB / 435 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.3706, allocations: 160.5 kB / 435.1 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003156/0.371, allocations: 335.2 kB / 435.4 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.372, allocations: 0.8603 MB / 436.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.372, allocations: 3.375 kB / 436.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.372, allocations: 4.688 kB / 436.3 MB, free: 7.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.3721, allocations: 1.406 kB / 436.3 MB, free: 7.367 MB / 350.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.003022/0.3751, allocations: 1.053 MB / 437.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/0.3751, allocations: 10.91 kB / 437.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003039/0.3754, allocations: 70.47 kB / 437.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000727/0.3762, allocations: 426.8 kB / 437.9 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.586e-05/0.3762, allocations: 31.12 kB / 437.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.494e-05/0.3763, allocations: 40.25 kB / 437.9 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.3779, allocations: 0.6051 MB / 438.5 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.3779, allocations: 1.438 kB / 438.5 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.369e-05/0.378, allocations: 15.53 kB / 438.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.378, allocations: 12.97 kB / 438.6 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002002/0.38, allocations: 0.6402 MB / 439.2 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003737/0.3837, allocations: 2.165 MB / 441.4 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003898/0.3876, allocations: 0.8337 MB / 442.2 MB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.3887, allocations: 372.3 kB / 442.6 MB, free: 4.043 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.728e-05/0.3887, allocations: 9.578 kB / 442.6 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001324/0.3901, allocations: 435.8 kB / 443 MB, free: 3.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.314e-06/0.3901, allocations: 1.094 kB / 443 MB, free: 3.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01478/0.4048, allocations: 2.378 MB / 445.4 MB, free: 3.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.4049, allocations: 91.55 kB / 445.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005923/0.4055, allocations: 415.5 kB / 445.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.705e-05/0.4056, allocations: 32.2 kB / 445.9 MB, free: 3.012 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.4057, allocations: 235.7 kB / 446.1 MB, free: 2.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.4058, allocations: 143.1 kB / 446.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001648/0.406, allocations: 71.45 kB / 446.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.142e-05/0.4061, allocations: 359.1 kB / 446.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009807/0.4071, allocations: 298.7 kB / 447 MB, free: 2.238 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000963/0.408, allocations: 338.7 kB / 447.3 MB, free: 2.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001842/0.4099, allocations: 0.5995 MB / 447.9 MB, free: 1.895 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.4099, allocations: 0 / 447.9 MB, free: 1.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003726/0.4136, allocations: 0.9941 MB / 448.9 MB, free: 1.551 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.337e-05/0.4136, allocations: 34.83 kB / 448.9 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.4137, allocations: 3.938 kB / 448.9 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/0.415, allocations: 433.6 kB / 449.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005127/0.4155, allocations: 88.05 kB / 449.5 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008631/0.4242, allocations: 3.819 MB / 453.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008821/0.425, allocations: 93.27 kB / 453.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.022e-05/0.4251, allocations: 15.12 kB / 453.4 MB, free: 14.79 MB / 366.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.0003086/0.4254, allocations: 177.3 kB / 453.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.965e-05/0.4255, allocations: 54.59 kB / 453.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001373/0.4256, allocations: 54.91 kB / 453.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.4256, allocations: 4.938 kB / 453.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4256, allocations: 0 / 453.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.427e-06/0.4257, allocations: 3.984 kB / 453.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008218/0.4265, allocations: 0.6201 MB / 454.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4265, allocations: 4 kB / 454.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005199/0.427, allocations: 84.22 kB / 454.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00126/0.4283, allocations: 434.9 kB / 454.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.354e-05/0.4283, allocations: 15.7 kB / 454.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008802/0.4371, allocations: 3.805 MB / 458.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.4371, allocations: 0 / 458.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006156/0.4433, allocations: 1.491 MB / 460.1 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003731/0.4436, allocations: 181.5 kB / 460.3 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.149e-05/0.4437, allocations: 19.59 kB / 460.3 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005883/0.4443, allocations: 72.81 kB / 460.4 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.4445, allocations: 56.08 kB / 460.4 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.17e-05/0.4445, allocations: 6.938 kB / 460.4 MB, free: 9.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004036/0.4449, allocations: 299.3 kB / 460.7 MB, free: 9.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4449, allocations: 0 / 460.7 MB, free: 9.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000734/0.4457, allocations: 178.8 kB / 460.9 MB, free: 9.703 MB / 366.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.0001995/0.4459, allocations: 111.1 kB / 461 MB, free: 9.605 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002934/0.4488, allocations: 0.952 MB / 462 MB, free: 9.035 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.4488, allocations: 8.062 kB / 462 MB, free: 9.027 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/0.4505, allocations: 0.5667 MB / 462.5 MB, free: 8.684 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005691/0.4511, allocations: 89.06 kB / 462.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003575/0.4546, allocations: 1.301 MB / 463.9 MB, free: 7.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004779/0.4551, allocations: 0.835 MB / 464.8 MB, free: 7.059 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001844/0.4553, allocations: 39.27 kB / 464.8 MB, free: 7.043 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4553, allocations: 0 / 464.8 MB, free: 7.043 MB / 366.1 MB Notification: Performance of Templates: time 0.01536/0.4707, allocations: 10.03 MB / 474.8 MB, free: 15.62 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.428884132008534]