Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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.00138/0.00138, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001086/0.001086, allocations: 168 kB / 25.75 MB, free: 8.949 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.9627/0.9627, allocations: 158.6 MB / 187.5 MB, free: 2.547 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.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 251.1 MB, free: 7.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.167e-05/3.328e-05, allocations: 6.25 kB / 251.1 MB, free: 7.801 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00322/0.003254, allocations: 1.728 MB / 252.8 MB, free: 6.059 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006595/0.003913, allocations: 255.2 kB / 253.1 MB, free: 5.809 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.004015, allocations: 11.94 kB / 253.1 MB, free: 5.797 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.00412, allocations: 31.67 kB / 253.1 MB, free: 5.766 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.967e-05/0.004179, allocations: 15.81 kB / 253.1 MB, free: 5.75 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003962/0.004576, allocations: 131.7 kB / 253.2 MB, free: 5.621 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003349/0.004911, allocations: 271.5 kB / 253.5 MB, free: 5.355 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.005162, allocations: 146.1 kB / 253.7 MB, free: 5.215 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.005309, allocations: 143.7 kB / 253.8 MB, free: 5.074 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.005418, allocations: 71.77 kB / 253.9 MB, free: 5.004 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.277e-05/0.005451, allocations: 24 kB / 253.9 MB, free: 4.98 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.581e-05/0.005517, allocations: 28 kB / 253.9 MB, free: 4.953 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.699e-05/0.005574, allocations: 59.8 kB / 254 MB, free: 4.895 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.234e-05/0.005646, allocations: 67.83 kB / 254 MB, free: 4.828 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000279/0.005925, allocations: 187.2 kB / 254.2 MB, free: 4.645 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.005927, allocations: 0 / 254.2 MB, free: 4.645 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.005928, allocations: 0 / 254.2 MB, free: 4.645 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.005932, allocations: 0 / 254.2 MB, free: 4.645 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0005387/0.006471, allocations: 0.5107 MB / 254.7 MB, free: 4.09 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.006506, allocations: 15.98 kB / 254.8 MB, free: 4.074 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.157e-05/0.006587, allocations: 44.8 kB / 254.8 MB, free: 4.031 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/0.006804, allocations: 172.3 kB / 255 MB, free: 3.836 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.006833, allocations: 20.88 kB / 255 MB, free: 3.816 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.634e-05/0.006869, allocations: 32.36 kB / 255 MB, free: 3.785 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003717/0.007241, allocations: 244.7 kB / 255.3 MB, free: 3.516 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.007251, allocations: 192 / 255.3 MB, free: 3.516 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.007275, allocations: 16.36 kB / 255.3 MB, free: 3.5 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.007287, allocations: 8.375 kB / 255.3 MB, free: 3.492 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002365/0.007524, allocations: 102.8 kB / 255.4 MB, free: 3.395 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.008547, allocations: 1.072 MB / 256.5 MB, free: 2.262 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002379/0.008785, allocations: 123.3 kB / 256.6 MB, free: 2.129 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.094e-05/0.008876, allocations: 51.67 kB / 256.6 MB, free: 2.074 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.008891, allocations: 4 kB / 256.6 MB, free: 2.07 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001627/0.009054, allocations: 108.8 kB / 256.7 MB, free: 1.949 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.423e-06/0.009055, allocations: 3.938 kB / 256.7 MB, free: 1.945 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.000381/0.009436, allocations: 193.9 kB / 256.9 MB, free: 1.75 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.009479, allocations: 55.41 kB / 257 MB, free: 1.684 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.009636, allocations: 221.7 kB / 257.2 MB, free: 1.445 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.009665, allocations: 33.7 kB / 257.2 MB, free: 1.406 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.009783, allocations: 191.4 kB / 257.4 MB, free: 1.215 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.257e-05/0.009836, allocations: 63.53 kB / 257.5 MB, free: 1.152 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.009946, allocations: 79.67 kB / 257.6 MB, free: 1.062 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.01013, allocations: 0.5001 MB / 258.1 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.832e-05/0.01023, allocations: 40.62 kB / 258.1 MB, free: 0.5117 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.01038, allocations: 146.1 kB / 258.2 MB, free: 336 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002308/0.01062, allocations: 184.7 kB / 258.4 MB, free: 108 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.01062, allocations: 0 / 258.4 MB, free: 108 kB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004519/0.01107, allocations: 245.3 kB / 258.7 MB, free: 15.86 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.01108, allocations: 4 kB / 258.7 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.01109, allocations: 4 kB / 258.7 MB, free: 15.85 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.0111, allocations: 4 kB / 258.7 MB, free: 15.85 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.01122, allocations: 35.92 kB / 258.7 MB, free: 15.81 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.01123, allocations: 4 kB / 258.7 MB, free: 15.81 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.01134, allocations: 31.77 kB / 258.7 MB, free: 15.78 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.01136, allocations: 12 kB / 258.8 MB, free: 15.77 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001265/0.01149, allocations: 183.3 kB / 258.9 MB, free: 15.57 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.652e-05/0.01152, allocations: 27.84 kB / 259 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/0.0118, allocations: 178.4 kB / 259.1 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.01181, allocations: 4 kB / 259.1 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.01181, allocations: 0 / 259.1 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.01181, allocations: 0 / 259.1 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000615/0.01243, allocations: 0.5353 MB / 259.7 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.01243, allocations: 0 / 259.7 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.047e-05/0.01249, allocations: 11.98 kB / 259.7 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.0125, allocations: 4 kB / 259.7 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.01251, allocations: 7.938 kB / 259.7 MB, free: 14.76 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.01251, allocations: 4 kB / 259.7 MB, free: 14.76 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.01251, allocations: 4 kB / 259.7 MB, free: 14.75 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002825/0.0128, allocations: 311.7 kB / 260 MB, free: 14.43 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.848e-05/0.01282, allocations: 15.84 kB / 260 MB, free: 14.41 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.01284, allocations: 11.92 kB / 260 MB, free: 14.4 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.566e-05/0.01292, allocations: 4 kB / 260 MB, free: 14.4 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.1e-05/0.01298, allocations: 23.97 kB / 260.1 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.01299, allocations: 4 kB / 260.1 MB, free: 14.37 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.949e-05/0.01306, allocations: 150.9 kB / 260.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01306, allocations: 0 / 260.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003447/0.01341, allocations: 55.89 kB / 260.3 MB, free: 14.17 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000265/0.01367, allocations: 103.2 kB / 260.4 MB, free: 14.06 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002667/0.01394, allocations: 152.1 kB / 260.5 MB, free: 13.91 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.01394, allocations: 0 / 260.5 MB, free: 13.91 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.01406, allocations: 84.11 kB / 260.6 MB, free: 13.82 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.01437, allocations: 28.48 kB / 260.6 MB, free: 13.79 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005229/0.01489, allocations: 331.1 kB / 261 MB, free: 13.44 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.999e-05/0.01495, allocations: 88.27 kB / 261 MB, free: 13.33 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.341e-05/0.01502, allocations: 21.94 kB / 261.1 MB, free: 13.31 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.646e-05/0.01508, allocations: 20.5 kB / 261.1 MB, free: 13.29 MB / 250.7 MB Notification: Performance of SimCode: time 8.72e-07/0.01508, allocations: 0 / 261.1 MB, free: 13.29 MB / 250.7 MB Notification: Performance of Templates: time 0.004588/0.01967, allocations: 1.923 MB / 263 MB, free: 11.39 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.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: 2.728442003019154]