Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001854/0.001854, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002285/0.002285, allocations: 209.6 kB / 23.73 MB, free: 4.387 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.588/1.588, allocations: 230.6 MB / 257.5 MB, free: 7.777 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 55.86 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2806, allocations: 53.36 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00306/0.2836, allocations: 1.652 MB / 433.2 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007578/0.2844, allocations: 291.2 kB / 433.5 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.2845, allocations: 7.938 kB / 433.5 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001399/0.2846, allocations: 23.67 kB / 433.5 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.294e-05/0.2847, allocations: 27.73 kB / 433.5 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004273/0.2851, allocations: 119.8 kB / 433.7 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003504/0.2855, allocations: 279.4 kB / 433.9 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003081/0.2858, allocations: 171.9 kB / 434.1 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.2859, allocations: 83.72 kB / 434.2 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001633/0.2861, allocations: 95.52 kB / 434.3 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.846e-05/0.2861, allocations: 20 kB / 434.3 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.833e-05/0.2862, allocations: 31.94 kB / 434.3 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.101e-05/0.2862, allocations: 59.83 kB / 434.4 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.2863, allocations: 83.58 kB / 434.5 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003565/0.2867, allocations: 262.6 kB / 434.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2867, allocations: 0 / 434.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2867, allocations: 4 kB / 434.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.2867, allocations: 0 / 434.7 MB, free: 3.535 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.0007295/0.2874, allocations: 421.2 kB / 435.1 MB, free: 3.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.2875, allocations: 8.031 kB / 435.2 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000262/0.2877, allocations: 40.77 kB / 435.2 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/0.2881, allocations: 174.1 kB / 435.4 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.906e-05/0.2881, allocations: 24.88 kB / 435.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.883e-05/0.2881, allocations: 28.38 kB / 435.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004639/0.2886, allocations: 269.7 kB / 435.7 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.2886, allocations: 192 / 435.7 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.647e-05/0.2886, allocations: 15.94 kB / 435.7 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.2887, allocations: 8 kB / 435.7 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003188/0.289, allocations: 165.6 kB / 435.9 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.2901, allocations: 0.8279 MB / 436.7 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003065/0.2904, allocations: 149.5 kB / 436.8 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001277/0.2905, allocations: 77.62 kB / 436.9 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.2906, allocations: 4 kB / 436.9 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002202/0.2908, allocations: 134.6 kB / 437 MB, free: 1.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.532e-06/0.2908, allocations: 4 kB / 437.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004473/0.2912, allocations: 221.1 kB / 437.3 MB, free: 0.832 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.078e-05/0.2913, allocations: 85.05 kB / 437.3 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.2914, allocations: 168.4 kB / 437.5 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.983e-05/0.2915, allocations: 41.69 kB / 437.6 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.84e-05/0.2916, allocations: 140.8 kB / 437.7 MB, free: 376 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.645e-05/0.2916, allocations: 59.53 kB / 437.8 MB, free: 316 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.2917, allocations: 81.67 kB / 437.8 MB, free: 228 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.2919, allocations: 326.8 kB / 438.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.292, allocations: 63.88 kB / 438.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.2922, allocations: 140.5 kB / 438.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003009/0.2925, allocations: 196.8 kB / 438.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.2925, allocations: 7.938 kB / 438.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004079/0.2929, allocations: 265.2 kB / 438.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.2929, allocations: 4 kB / 438.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.2929, allocations: 4 kB / 438.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.2929, allocations: 4 kB / 438.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.2931, allocations: 27.92 kB / 438.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.2931, allocations: 4 kB / 438.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.2932, allocations: 44.05 kB / 438.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.088e-05/0.2932, allocations: 11.98 kB / 438.9 MB, free: 15.07 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.0001674/0.2934, allocations: 165.6 kB / 439.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.388e-05/0.2934, allocations: 11.91 kB / 439.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.292e-05/0.2935, allocations: 20.94 kB / 439.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.2935, allocations: 4 kB / 439.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2935, allocations: 0 / 439.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2935, allocations: 0 / 439.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000709/0.2942, allocations: 0.489 MB / 439.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2942, allocations: 4 kB / 439.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.978e-05/0.2943, allocations: 12 kB / 439.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.2943, allocations: 4 kB / 439.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.2943, allocations: 7.984 kB / 439.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2943, allocations: 0 / 439.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.2943, allocations: 7.938 kB / 439.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003319/0.2946, allocations: 275 kB / 439.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.968e-05/0.2947, allocations: 19.83 kB / 439.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.2947, allocations: 4 kB / 439.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.532e-05/0.2948, allocations: 8 kB / 439.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.362e-05/0.2949, allocations: 27.89 kB / 440 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.2949, allocations: 12 kB / 440 MB, free: 13.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.783e-05/0.295, allocations: 95.27 kB / 440.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.295, allocations: 0 / 440.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003078/0.2953, allocations: 51.84 kB / 440.1 MB, free: 13.79 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,step.active,transition1.enableFire,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.0001237/0.2954, allocations: 107.2 kB / 440.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000335/0.2957, allocations: 175.7 kB / 440.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2957, allocations: 0.5625 kB / 440.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.2959, allocations: 83.7 kB / 440.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.2962, allocations: 23.98 kB / 440.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006198/0.2968, allocations: 340.3 kB / 440.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001364/0.2969, allocations: 129.6 kB / 441 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.631e-05/0.297, allocations: 17.95 kB / 441 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.838e-05/0.2971, allocations: 19.44 kB / 441 MB, free: 12.86 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2971, allocations: 0 / 441 MB, free: 12.86 MB / 350.1 MB Notification: Performance of Templates: time 0.005548/0.3026, allocations: 1.845 MB / 442.8 MB, free: 11.05 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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: 4.765915993601084]