Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001525/0.001525, allocations: 75.75 kB / 21.97 MB, free: 2.605 MB / 18.57 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.001601/0.001601, allocations: 167.7 kB / 25.33 MB, free: 9.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8768/0.8768, allocations: 158.6 MB / 187.2 MB, free: 2.555 MB / 170.7 MB " [Timeout remaining time 179] 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 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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 251 MB, free: 3.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.308e-05/3.485e-05, allocations: 9.406 kB / 251.1 MB, free: 3.582 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003714/0.003749, allocations: 3.832 MB / 254.9 MB, free: 15.72 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.004919, allocations: 1.002 MB / 255.9 MB, free: 14.71 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.005077, allocations: 11.94 kB / 255.9 MB, free: 14.7 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001543/0.005231, allocations: 83.14 kB / 256 MB, free: 14.62 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001937/0.005425, allocations: 182.4 kB / 256.2 MB, free: 14.44 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002788/0.005704, allocations: 211.6 kB / 256.4 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004539/0.006158, allocations: 0.7858 MB / 257.2 MB, free: 13.45 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.006312, allocations: 113.5 kB / 257.3 MB, free: 13.33 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003071/0.006619, allocations: 439 kB / 257.7 MB, free: 12.9 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002342/0.006853, allocations: 267.3 kB / 258 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.69e-05/0.00692, allocations: 76 kB / 258 MB, free: 12.56 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.679e-05/0.006987, allocations: 80 kB / 258.1 MB, free: 12.48 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.376e-05/0.00707, allocations: 151.5 kB / 258.3 MB, free: 12.34 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.007229, allocations: 231.4 kB / 258.5 MB, free: 12.11 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.007584, allocations: 0.4984 MB / 259 MB, free: 11.61 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.393e-06/0.007586, allocations: 0 / 259 MB, free: 11.61 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.007586, allocations: 4 kB / 259 MB, free: 11.61 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.007591, allocations: 0 / 259 MB, free: 11.61 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001096/0.008686, allocations: 0.9687 MB / 260 MB, free: 10.59 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.817e-05/0.008715, allocations: 15.98 kB / 260 MB, free: 10.57 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.635e-05/0.008811, allocations: 80.61 kB / 260 MB, free: 10.5 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.009123, allocations: 346.5 kB / 260.4 MB, free: 10.13 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.2e-05/0.009155, allocations: 25.38 kB / 260.4 MB, free: 10.11 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.962e-05/0.009205, allocations: 40.38 kB / 260.4 MB, free: 10.07 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000564/0.009769, allocations: 457.7 kB / 260.9 MB, free: 9.586 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.009777, allocations: 3.938 kB / 260.9 MB, free: 9.582 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.427e-05/0.009811, allocations: 19.98 kB / 260.9 MB, free: 9.562 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.009818, allocations: 8 kB / 260.9 MB, free: 9.555 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003257/0.01014, allocations: 193.8 kB / 261.1 MB, free: 9.363 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.01175, allocations: 1.802 MB / 262.9 MB, free: 7.477 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.01293, allocations: 443.3 kB / 263.4 MB, free: 7.031 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002373/0.01317, allocations: 147.6 kB / 263.5 MB, free: 6.883 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.0132, allocations: 12.62 kB / 263.5 MB, free: 6.871 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002925/0.01349, allocations: 248.9 kB / 263.7 MB, free: 6.602 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 1.092e-06/0.01349, allocations: 0 / 263.7 MB, free: 6.602 MB / 250.7 MB Notification: Performance of matching and sorting (n=39): time 0.003244/0.01674, allocations: 1.035 MB / 264.8 MB, free: 5.555 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.01678, allocations: 92.98 kB / 264.9 MB, free: 5.445 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003225/0.0171, allocations: 386.8 kB / 265.3 MB, free: 5.055 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.01713, allocations: 37.7 kB / 265.3 MB, free: 5.012 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.01725, allocations: 279.5 kB / 265.6 MB, free: 4.734 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.605e-05/0.01733, allocations: 134.9 kB / 265.7 MB, free: 4.602 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.01743, allocations: 75.72 kB / 265.8 MB, free: 4.516 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.01755, allocations: 0.5235 MB / 266.3 MB, free: 3.98 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.01772, allocations: 106.5 kB / 266.4 MB, free: 3.871 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.01791, allocations: 190.5 kB / 266.6 MB, free: 3.66 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004504/0.01836, allocations: 219.4 kB / 266.8 MB, free: 3.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.01836, allocations: 0 / 266.8 MB, free: 3.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001467/0.01983, allocations: 0.6045 MB / 267.4 MB, free: 2.805 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.01985, allocations: 40.3 kB / 267.4 MB, free: 2.762 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.01986, allocations: 0 / 267.4 MB, free: 2.762 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004699/0.02033, allocations: 247.4 kB / 267.7 MB, free: 2.516 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.02051, allocations: 71.94 kB / 267.8 MB, free: 2.445 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003541/0.02405, allocations: 2.858 MB / 270.6 MB, free: 15.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.02426, allocations: 63.88 kB / 270.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.612e-05/0.02429, allocations: 16 kB / 270.7 MB, free: 15.39 MB / 266.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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.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.0001199/0.02441, allocations: 176.5 kB / 270.9 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6e-05/0.02447, allocations: 59.7 kB / 270.9 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.866e-05/0.02452, allocations: 48.25 kB / 271 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.02452, allocations: 4 kB / 271 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.02452, allocations: 7.938 kB / 271 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.02453, allocations: 0 / 271 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003066/0.02483, allocations: 376.7 kB / 271.3 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.02483, allocations: 4 kB / 271.3 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.025, allocations: 59.95 kB / 271.4 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004062/0.02541, allocations: 244.5 kB / 271.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.02543, allocations: 11.98 kB / 271.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003009/0.02844, allocations: 2.852 MB / 274.5 MB, free: 11.4 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.02844, allocations: 0 / 274.5 MB, free: 11.4 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.02968, allocations: 0.6056 MB / 275.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001277/0.0298, allocations: 99.52 kB / 275.2 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.538e-05/0.02984, allocations: 8 kB / 275.2 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.03002, allocations: 47.95 kB / 275.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.478e-05/0.0301, allocations: 47.91 kB / 275.3 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.03013, allocations: 12 kB / 275.3 MB, free: 10.55 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001566/0.03028, allocations: 271.1 kB / 275.6 MB, free: 10.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03028, allocations: 0 / 275.6 MB, free: 10.29 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003378/0.03062, allocations: 167.8 kB / 275.8 MB, free: 10.12 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,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.0001033/0.03072, allocations: 113.6 kB / 275.9 MB, free: 10.01 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007498/0.03147, allocations: 0.5914 MB / 276.5 MB, free: 9.379 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.03148, allocations: 0 / 276.5 MB, free: 9.379 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004463/0.03192, allocations: 432.8 kB / 276.9 MB, free: 8.934 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.03218, allocations: 89.41 kB / 277 MB, free: 8.848 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.03401, allocations: 0.9411 MB / 277.9 MB, free: 7.875 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.618e-05/0.03409, allocations: 125.8 kB / 278 MB, free: 7.734 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000101/0.03419, allocations: 31.28 kB / 278.1 MB, free: 7.703 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.409e-05/0.03427, allocations: 36.5 kB / 278.1 MB, free: 7.668 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.03427, allocations: 0 / 278.1 MB, free: 7.668 MB / 266.7 MB Notification: Performance of Templates: time 0.01319/0.04745, allocations: 13.09 MB / 291.2 MB, free: 10.57 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8816934628412127]