Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.000748/0.000748, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001008/0.001756, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006609/0.0006609, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008606/0.001521, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9388/0.9388, allocations: 177.5 MB / 190 MB, free: 4.758 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08953/1.028, allocations: 53.87 MB / 243.9 MB, free: 14.82 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 245.2 MB, free: 13.56 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.293e-05/2.474e-05, allocations: 2.312 kB / 245.2 MB, free: 13.56 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003376/0.003401, allocations: 1.75 MB / 246.9 MB, free: 11.8 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006964/0.004098, allocations: 314.9 kB / 247.2 MB, free: 11.49 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.004206, allocations: 7.938 kB / 247.2 MB, free: 11.48 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.004321, allocations: 31.67 kB / 247.3 MB, free: 11.45 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.534e-05/0.004377, allocations: 19.8 kB / 247.3 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000409/0.004786, allocations: 119.8 kB / 247.4 MB, free: 11.31 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000367/0.005153, allocations: 287.3 kB / 247.7 MB, free: 11.03 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002975/0.00545, allocations: 154.3 kB / 247.8 MB, free: 10.88 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.005621, allocations: 143.7 kB / 248 MB, free: 10.74 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.005765, allocations: 79.75 kB / 248.1 MB, free: 10.66 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.703e-05/0.005802, allocations: 24 kB / 248.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.332e-05/0.005875, allocations: 24 kB / 248.1 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.517e-05/0.00594, allocations: 43.88 kB / 248.2 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.102e-05/0.006011, allocations: 59.86 kB / 248.2 MB, free: 10.51 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002774/0.006289, allocations: 175.2 kB / 248.4 MB, free: 10.34 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.257e-05/0.006301, allocations: 0 / 248.4 MB, free: 10.34 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.006303, allocations: 0 / 248.4 MB, free: 10.34 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.006314, allocations: 0 / 248.4 MB, free: 10.34 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006464/0.00696, allocations: 439.5 kB / 248.8 MB, free: 9.883 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.007002, allocations: 8.031 kB / 248.8 MB, free: 9.875 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000276/0.007278, allocations: 130 kB / 248.9 MB, free: 9.73 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002478/0.007526, allocations: 149.5 kB / 249.1 MB, free: 9.559 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.699e-05/0.007563, allocations: 24.81 kB / 249.1 MB, free: 9.531 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.847e-05/0.007601, allocations: 28.38 kB / 249.1 MB, free: 9.504 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002937/0.007895, allocations: 222.5 kB / 249.4 MB, free: 9.266 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.007907, allocations: 192 / 249.4 MB, free: 9.266 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.007928, allocations: 12.38 kB / 249.4 MB, free: 9.254 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.00794, allocations: 12.36 kB / 249.4 MB, free: 9.242 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.008071, allocations: 67.34 kB / 249.5 MB, free: 9.176 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008737/0.008944, allocations: 0.7271 MB / 250.2 MB, free: 8.414 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001939/0.009138, allocations: 117.1 kB / 250.3 MB, free: 8.281 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.737e-05/0.009196, allocations: 45.7 kB / 250.3 MB, free: 8.23 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.009215, allocations: 4 kB / 250.3 MB, free: 8.227 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001625/0.009377, allocations: 120.8 kB / 250.5 MB, free: 8.09 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.312e-06/0.009378, allocations: 0 / 250.5 MB, free: 8.09 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002501/0.009628, allocations: 138.6 kB / 250.6 MB, free: 7.949 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.009683, allocations: 81.23 kB / 250.7 MB, free: 7.852 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.009803, allocations: 174.4 kB / 250.8 MB, free: 7.668 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/0.009834, allocations: 37.7 kB / 250.9 MB, free: 7.625 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.389e-05/0.009918, allocations: 136.8 kB / 251 MB, free: 7.488 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.378e-05/0.009972, allocations: 63.52 kB / 251.1 MB, free: 7.426 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.453e-05/0.01007, allocations: 77.62 kB / 251.2 MB, free: 7.344 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.01019, allocations: 330.8 kB / 251.5 MB, free: 7.012 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.36e-05/0.01025, allocations: 31.77 kB / 251.5 MB, free: 6.98 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.983e-05/0.01035, allocations: 104.5 kB / 251.6 MB, free: 6.848 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.01055, allocations: 164.3 kB / 251.8 MB, free: 6.656 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.01055, allocations: 4 kB / 251.8 MB, free: 6.652 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002597/0.01081, allocations: 169.6 kB / 251.9 MB, free: 6.48 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.01083, allocations: 11.94 kB / 252 MB, free: 6.469 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.01084, allocations: 3.984 kB / 252 MB, free: 6.465 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.01086, allocations: 4 kB / 252 MB, free: 6.461 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.01104, allocations: 47.86 kB / 252 MB, free: 6.414 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.01105, allocations: 7.938 kB / 252 MB, free: 6.406 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.595e-05/0.01115, allocations: 27.78 kB / 252 MB, free: 6.379 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.01117, allocations: 15.98 kB / 252.1 MB, free: 6.363 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: 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,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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.0001272/0.0113, allocations: 141.9 kB / 252.2 MB, free: 6.215 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.268e-05/0.01133, allocations: 15.98 kB / 252.2 MB, free: 6.199 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.787e-05/0.01138, allocations: 24.88 kB / 252.2 MB, free: 6.176 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.01138, allocations: 4 kB / 252.2 MB, free: 6.172 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.01138, allocations: 0 / 252.2 MB, free: 6.172 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.01139, allocations: 3.984 kB / 252.2 MB, free: 6.168 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005025/0.01189, allocations: 362.1 kB / 252.6 MB, free: 5.785 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.0119, allocations: 4 kB / 252.6 MB, free: 5.781 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.454e-05/0.01197, allocations: 19.92 kB / 252.6 MB, free: 5.762 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.021e-05/0.01199, allocations: 15.84 kB / 252.6 MB, free: 5.746 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.012, allocations: 4 kB / 252.6 MB, free: 5.742 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.01201, allocations: 8 kB / 252.6 MB, free: 5.734 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.01201, allocations: 4 kB / 252.7 MB, free: 5.73 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.01202, allocations: 0 / 252.7 MB, free: 5.73 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001843/0.0122, allocations: 221.1 kB / 252.9 MB, free: 5.496 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.269e-05/0.01222, allocations: 4 kB / 252.9 MB, free: 5.492 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.551e-05/0.01231, allocations: 8 kB / 252.9 MB, free: 5.484 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.823e-05/0.01237, allocations: 19.95 kB / 252.9 MB, free: 5.465 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.01238, allocations: 12 kB / 252.9 MB, free: 5.453 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.185e-05/0.01241, allocations: 23.8 kB / 252.9 MB, free: 5.43 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01241, allocations: 0 / 252.9 MB, free: 5.43 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.00029/0.0127, allocations: 51.89 kB / 253 MB, free: 5.379 MB / 250.7 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.0001078/0.01281, allocations: 80.42 kB / 253.1 MB, free: 5.293 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002105/0.01302, allocations: 132.5 kB / 253.2 MB, free: 5.16 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.267e-05/0.01303, allocations: 4 kB / 253.2 MB, free: 5.156 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.351e-05/0.01313, allocations: 68.7 kB / 253.3 MB, free: 5.086 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.01344, allocations: 199.1 kB / 253.5 MB, free: 4.855 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007324/0.01417, allocations: 329.9 kB / 253.8 MB, free: 4.508 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.848e-05/0.01424, allocations: 80.31 kB / 253.9 MB, free: 4.41 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.537e-05/0.01432, allocations: 25.88 kB / 253.9 MB, free: 4.383 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.01444, allocations: 83.36 kB / 254 MB, free: 4.301 MB / 250.7 MB Notification: Performance of SimCode: time 8.02e-07/0.01444, allocations: 0 / 254 MB, free: 4.301 MB / 250.7 MB Notification: Performance of Templates: time 0.004964/0.01941, allocations: 1.893 MB / 255.9 MB, free: 2.438 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4203196158632636]