Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001775/0.001775, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.002551/0.002551, allocations: 207.5 kB / 24.48 MB, free: 3.695 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.442/1.442, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_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_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 43.92 kB / 378.9 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.28, allocations: 53.37 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003136/0.2831, allocations: 1.698 MB / 434 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007333/0.2839, allocations: 283.2 kB / 434.3 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.284, allocations: 4 kB / 434.3 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001436/0.2841, allocations: 31.67 kB / 434.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.542e-05/0.2842, allocations: 15.8 kB / 434.3 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003937/0.2846, allocations: 127.8 kB / 434.5 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000339/0.2849, allocations: 279.4 kB / 434.7 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002864/0.2852, allocations: 161.5 kB / 434.9 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.2853, allocations: 91.7 kB / 435 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001399/0.2855, allocations: 99.59 kB / 435.1 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.966e-05/0.2855, allocations: 24 kB / 435.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.94e-05/0.2856, allocations: 27.94 kB / 435.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.406e-05/0.2856, allocations: 63.81 kB / 435.2 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.842e-05/0.2857, allocations: 79.59 kB / 435.3 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003373/0.2861, allocations: 257.9 kB / 435.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.2861, allocations: 0 / 435.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2861, allocations: 4 kB / 435.5 MB, free: 3.496 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.2861, allocations: 0 / 435.5 MB, free: 3.496 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.0006803/0.2868, allocations: 424.1 kB / 435.9 MB, free: 3.055 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.2868, allocations: 8.031 kB / 435.9 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002591/0.2871, allocations: 36.77 kB / 436 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003554/0.2874, allocations: 174.1 kB / 436.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.398e-05/0.2875, allocations: 28.88 kB / 436.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.899e-05/0.2875, allocations: 24.38 kB / 436.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004665/0.288, allocations: 277.7 kB / 436.5 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.288, allocations: 192 / 436.5 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.829e-05/0.288, allocations: 15.94 kB / 436.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.288, allocations: 4 kB / 436.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003017/0.2883, allocations: 161.6 kB / 436.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/0.2894, allocations: 0.8357 MB / 437.5 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002854/0.2897, allocations: 149.5 kB / 437.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.2898, allocations: 73.62 kB / 437.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.744e-05/0.2899, allocations: 8 kB / 437.7 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002199/0.2901, allocations: 133 kB / 437.8 MB, free: 1.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.2901, allocations: 4 kB / 437.8 MB, free: 1.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004735/0.2906, allocations: 222.7 kB / 438.1 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.635e-05/0.2906, allocations: 85.05 kB / 438.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.2908, allocations: 161.3 kB / 438.3 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.599e-05/0.2908, allocations: 37.7 kB / 438.3 MB, free: 492 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.2909, allocations: 144.7 kB / 438.5 MB, free: 340 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.839e-05/0.291, allocations: 63.53 kB / 438.5 MB, free: 276 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.2911, allocations: 81.42 kB / 438.6 MB, free: 188 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.2913, allocations: 326.8 kB / 438.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.2914, allocations: 68.09 kB / 439 MB, free: 15.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.2916, allocations: 136.5 kB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.2918, allocations: 196.8 kB / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2918, allocations: 0 / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003876/0.2922, allocations: 257.3 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2922, allocations: 8 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2922, allocations: 3.938 kB / 439.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.2923, allocations: 12 kB / 439.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.2924, allocations: 31.92 kB / 439.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.2924, allocations: 4 kB / 439.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.2925, allocations: 32.11 kB / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.2925, allocations: 16 kB / 439.7 MB, free: 15.04 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.0001666/0.2927, allocations: 165.6 kB / 439.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.888e-05/0.2927, allocations: 15.94 kB / 439.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.596e-05/0.2928, allocations: 12.94 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2928, allocations: 4 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.2928, allocations: 0 / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2928, allocations: 0 / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006926/0.2935, allocations: 0.4929 MB / 440.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2935, allocations: 4 kB / 440.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.941e-05/0.2936, allocations: 16 kB / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.2936, allocations: 0 / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.2936, allocations: 0 / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/0.2936, allocations: 11.92 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2936, allocations: 3.938 kB / 440.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003193/0.2939, allocations: 276.1 kB / 440.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.022e-05/0.2939, allocations: 11.91 kB / 440.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.825e-05/0.294, allocations: 11.98 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.842e-05/0.294, allocations: 4 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.324e-05/0.2941, allocations: 27.91 kB / 440.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.2941, allocations: 11.98 kB / 440.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.319e-05/0.2942, allocations: 99.27 kB / 440.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2942, allocations: 0 / 440.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003013/0.2945, allocations: 47.89 kB / 440.9 MB, free: 13.76 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.0001449/0.2946, allocations: 111.1 kB / 441 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003187/0.295, allocations: 163.8 kB / 441.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.295, allocations: 0.5625 kB / 441.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.2951, allocations: 86.55 kB / 441.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.2954, allocations: 16 kB / 441.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006427/0.296, allocations: 358.1 kB / 441.6 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001362/0.2962, allocations: 121.6 kB / 441.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.161e-05/0.2962, allocations: 23.44 kB / 441.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2962, allocations: 3.938 kB / 441.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Templates: time 0.004402/0.3006, allocations: 2.285 MB / 444 MB, free: 10.55 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.905261746025644]