Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001548/0.001548, allocations: 117 kB / 21.18 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001713/0.001713, allocations: 209.3 kB / 24.47 MB, free: 3.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.413/1.413, allocations: 230.4 MB / 258.1 MB, free: 8.125 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 67.97 kB / 378.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2736, allocations: 53.31 MB / 432 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003125/0.2767, allocations: 1.73 MB / 433.7 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007385/0.2774, allocations: 291.1 kB / 434 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.2775, allocations: 7.938 kB / 434 MB, free: 5.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.2777, allocations: 27.67 kB / 434.1 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.153e-05/0.2777, allocations: 23.8 kB / 434.1 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003934/0.2781, allocations: 119.8 kB / 434.2 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003665/0.2785, allocations: 267.5 kB / 434.5 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002865/0.2788, allocations: 149.5 kB / 434.6 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.2789, allocations: 87.7 kB / 434.7 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/0.2791, allocations: 103.5 kB / 434.8 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.566e-05/0.2791, allocations: 24 kB / 434.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.044e-05/0.2792, allocations: 36 kB / 434.9 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.884e-05/0.2793, allocations: 63.75 kB / 434.9 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.2794, allocations: 99.53 kB / 435 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003568/0.2797, allocations: 260.4 kB / 435.3 MB, free: 4.082 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2797, allocations: 0 / 435.3 MB, free: 4.082 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2797, allocations: 0 / 435.3 MB, free: 4.082 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.2797, allocations: 0 / 435.3 MB, free: 4.082 MB / 334.1 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.0007568/0.2805, allocations: 498.4 kB / 435.8 MB, free: 3.547 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.2805, allocations: 8.031 kB / 435.8 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002733/0.2808, allocations: 44.77 kB / 435.8 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003357/0.2812, allocations: 232 kB / 436 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/0.2812, allocations: 28.92 kB / 436.1 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.246e-05/0.2812, allocations: 24.38 kB / 436.1 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004648/0.2817, allocations: 262.6 kB / 436.3 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.2817, allocations: 4.188 kB / 436.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/0.2817, allocations: 15.94 kB / 436.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.2818, allocations: 8 kB / 436.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003075/0.2821, allocations: 165.5 kB / 436.5 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.2833, allocations: 0.9519 MB / 437.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003039/0.2836, allocations: 161.4 kB / 437.6 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00013/0.2837, allocations: 77.61 kB / 437.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.2837, allocations: 0 / 437.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002145/0.284, allocations: 137.1 kB / 437.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.212e-06/0.284, allocations: 0 / 437.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004584/0.2844, allocations: 220.8 kB / 438.1 MB, free: 1.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.673e-05/0.2845, allocations: 81.11 kB / 438.2 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.2847, allocations: 157.7 kB / 438.3 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/0.2847, allocations: 41.83 kB / 438.3 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.2848, allocations: 140.7 kB / 438.5 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.514e-05/0.2849, allocations: 63.58 kB / 438.5 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.285, allocations: 81.41 kB / 438.6 MB, free: 480 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.2852, allocations: 334.8 kB / 439 MB, free: 136 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.2853, allocations: 63.92 kB / 439 MB, free: 72 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.2855, allocations: 136.5 kB / 439.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002809/0.2857, allocations: 196.3 kB / 439.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2857, allocations: 0 / 439.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003976/0.2861, allocations: 253.4 kB / 439.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.2862, allocations: 8 kB / 439.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.2862, allocations: 0 / 439.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.2862, allocations: 4 kB / 439.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.2863, allocations: 39.86 kB / 439.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.2863, allocations: 4 kB / 439.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.2865, allocations: 27.78 kB / 439.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.2865, allocations: 15.98 kB / 439.7 MB, free: 15.33 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.00016/0.2866, allocations: 161.8 kB / 439.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.2867, allocations: 11.91 kB / 439.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.814e-05/0.2867, allocations: 20.83 kB / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.2867, allocations: 4 kB / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.2867, allocations: 3.938 kB / 439.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.2867, allocations: 0 / 439.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007701/0.2875, allocations: 0.5791 MB / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.2875, allocations: 0 / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.336e-05/0.2876, allocations: 23.98 kB / 440.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.2876, allocations: 4 kB / 440.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.2876, allocations: 0 / 440.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.2876, allocations: 7.938 kB / 440.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2876, allocations: 0 / 440.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003449/0.2879, allocations: 278.9 kB / 440.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.719e-05/0.288, allocations: 89 kB / 440.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.288, allocations: 8 kB / 440.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.786e-05/0.2881, allocations: 19.92 kB / 440.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.985e-05/0.2882, allocations: 19.97 kB / 440.9 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.2882, allocations: 7.984 kB / 440.9 MB, free: 14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.294e-05/0.2883, allocations: 98.89 kB / 441 MB, free: 13.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2883, allocations: 0 / 441 MB, free: 13.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002982/0.2886, allocations: 55.84 kB / 441.1 MB, free: 13.85 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001171/0.2887, allocations: 103.2 kB / 441.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000346/0.2891, allocations: 172.1 kB / 441.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2891, allocations: 3.938 kB / 441.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.2892, allocations: 75.75 kB / 441.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.2895, allocations: 30.56 kB / 441.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006607/0.2901, allocations: 361.9 kB / 441.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.2906, allocations: 0.7326 MB / 442.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.921e-05/0.2906, allocations: 19.44 kB / 442.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2906, allocations: 3.938 kB / 442.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of Templates: time 0.004429/0.295, allocations: 2.266 MB / 444.8 MB, free: 10.02 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.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: 6.796697506681085]