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.001025/0.001025, allocations: 75.77 kB / 22.45 MB, free: 2.098 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.0009902/0.0009902, allocations: 169 kB / 25.75 MB, free: 8.582 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 1.035/1.035, allocations: 158.6 MB / 187.6 MB, free: 2.902 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 3.377e-06/3.377e-06, allocations: 0 / 251.1 MB, free: 7.805 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.173e-05/4.511e-05, allocations: 2.312 kB / 251.1 MB, free: 7.801 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004737/0.004782, allocations: 3.833 MB / 254.9 MB, free: 3.941 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001805/0.006587, allocations: 1.002 MB / 255.9 MB, free: 2.93 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002597/0.006847, allocations: 11.94 kB / 256 MB, free: 2.918 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002299/0.007077, allocations: 83.14 kB / 256 MB, free: 2.836 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002981/0.007375, allocations: 182.4 kB / 256.2 MB, free: 2.656 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000482/0.007857, allocations: 207.6 kB / 256.4 MB, free: 2.453 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006431/0.0085, allocations: 0.7896 MB / 257.2 MB, free: 1.66 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002259/0.008726, allocations: 109.5 kB / 257.3 MB, free: 1.547 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004409/0.009167, allocations: 447 kB / 257.8 MB, free: 1.109 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.009459, allocations: 263.3 kB / 258 MB, free: 0.8516 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.417e-05/0.009543, allocations: 76 kB / 258.1 MB, free: 0.7773 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.028e-05/0.009613, allocations: 80 kB / 258.2 MB, free: 0.6992 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.395e-05/0.009707, allocations: 151.5 kB / 258.3 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002078/0.009915, allocations: 227.5 kB / 258.5 MB, free: 336 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006499/0.01056, allocations: 0.5061 MB / 259 MB, free: 15.82 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.01057, allocations: 0 / 259 MB, free: 15.82 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.01057, allocations: 0 / 259 MB, free: 15.82 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.01058, allocations: 0 / 259 MB, free: 15.82 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.002102/0.01268, allocations: 0.9649 MB / 260 MB, free: 14.81 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/0.01274, allocations: 15.98 kB / 260 MB, free: 14.79 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000183/0.01292, allocations: 84.56 kB / 260.1 MB, free: 14.71 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005406/0.01347, allocations: 342.6 kB / 260.4 MB, free: 14.35 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.01351, allocations: 29.38 kB / 260.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.737e-05/0.01359, allocations: 40.38 kB / 260.5 MB, free: 14.28 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009155/0.0145, allocations: 453.7 kB / 260.9 MB, free: 13.8 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.01452, allocations: 3.938 kB / 261 MB, free: 13.8 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.999e-05/0.01457, allocations: 20 kB / 261 MB, free: 13.78 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.01458, allocations: 12 kB / 261 MB, free: 13.77 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005288/0.01511, allocations: 185.8 kB / 261.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002567/0.01768, allocations: 1.802 MB / 263 MB, free: 11.7 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.01895, allocations: 451.3 kB / 263.4 MB, free: 11.25 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002586/0.01921, allocations: 147.6 kB / 263.6 MB, free: 11.1 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.01924, allocations: 12.62 kB / 263.6 MB, free: 11.09 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003328/0.01958, allocations: 244.8 kB / 263.8 MB, free: 10.82 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 1.974e-06/0.01958, allocations: 0 / 263.8 MB, free: 10.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=39): time 0.003423/0.023, allocations: 1.035 MB / 264.8 MB, free: 9.773 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.02306, allocations: 93.03 kB / 264.9 MB, free: 9.664 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003132/0.02337, allocations: 386.8 kB / 265.3 MB, free: 9.273 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.02341, allocations: 37.64 kB / 265.3 MB, free: 9.23 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.02356, allocations: 279.5 kB / 265.6 MB, free: 8.953 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.608e-05/0.02366, allocations: 134.8 kB / 265.7 MB, free: 8.82 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.02378, allocations: 79.72 kB / 265.8 MB, free: 8.73 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.02393, allocations: 0.5235 MB / 266.4 MB, free: 8.195 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001977/0.02413, allocations: 102.5 kB / 266.5 MB, free: 8.09 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002046/0.02433, allocations: 182.5 kB / 266.6 MB, free: 7.887 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003839/0.02472, allocations: 215.3 kB / 266.8 MB, free: 7.66 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.02472, allocations: 3.938 kB / 266.8 MB, free: 7.656 MB / 250.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00157/0.02629, allocations: 0.6162 MB / 267.5 MB, free: 7.02 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.142e-05/0.02633, allocations: 37.64 kB / 267.5 MB, free: 6.977 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.02634, allocations: 0 / 267.5 MB, free: 6.977 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005278/0.02687, allocations: 239.2 kB / 267.7 MB, free: 6.742 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002145/0.02708, allocations: 75.89 kB / 267.8 MB, free: 6.668 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003667/0.03075, allocations: 2.864 MB / 270.7 MB, free: 3.684 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003278/0.03108, allocations: 59.89 kB / 270.7 MB, free: 3.625 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.898e-05/0.03111, allocations: 11.98 kB / 270.7 MB, free: 3.613 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 (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.0001914/0.0313, allocations: 180.5 kB / 270.9 MB, free: 3.426 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.581e-05/0.03137, allocations: 59.72 kB / 271 MB, free: 3.367 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.181e-05/0.03144, allocations: 56.23 kB / 271 MB, free: 3.312 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.03144, allocations: 4 kB / 271 MB, free: 3.309 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.03144, allocations: 3.938 kB / 271 MB, free: 3.305 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.03145, allocations: 0 / 271 MB, free: 3.305 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003866/0.03184, allocations: 372.7 kB / 271.4 MB, free: 2.906 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.03184, allocations: 0 / 271.4 MB, free: 2.906 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.03203, allocations: 67.89 kB / 271.5 MB, free: 2.84 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004511/0.03248, allocations: 243.2 kB / 271.7 MB, free: 2.602 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.459e-05/0.03252, allocations: 4 kB / 271.7 MB, free: 2.598 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003924/0.03644, allocations: 2.856 MB / 274.6 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.03644, allocations: 3.938 kB / 274.6 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/0.0379, allocations: 0.6017 MB / 275.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002068/0.0381, allocations: 95.53 kB / 275.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.504e-05/0.03816, allocations: 16.08 kB / 275.3 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.03836, allocations: 39.97 kB / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.03851, allocations: 51.89 kB / 275.4 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.888e-05/0.03853, allocations: 15.98 kB / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002021/0.03874, allocations: 267.1 kB / 275.6 MB, free: 14.5 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03874, allocations: 0 / 275.6 MB, free: 14.5 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000478/0.03921, allocations: 171.8 kB / 275.8 MB, free: 14.34 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.000137/0.03935, allocations: 106.5 kB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009664/0.04032, allocations: 0.5993 MB / 276.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.04032, allocations: 4 kB / 276.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005302/0.04085, allocations: 428.7 kB / 276.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003331/0.04118, allocations: 89.33 kB / 277 MB, free: 13.06 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.04311, allocations: 0.9334 MB / 278 MB, free: 12.1 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.04322, allocations: 117.8 kB / 278.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001396/0.04336, allocations: 43.25 kB / 278.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.972e-05/0.04344, allocations: 32.5 kB / 278.1 MB, free: 11.89 MB / 266.7 MB Notification: Performance of SimCode: time 1.593e-06/0.04344, allocations: 0 / 278.1 MB, free: 11.89 MB / 266.7 MB Notification: Performance of Templates: time 0.01456/0.058, allocations: 13.09 MB / 291.2 MB, free: 14.8 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.9044595558661968]