Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.001205/0.001205, allocations: 88.28 kB / 21.43 MB, free: 3.137 MB / 18.57 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.005732/0.005732, allocations: 156.7 kB / 24.7 MB, free: 8.895 MB / 18.57 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.8669/0.8669, allocations: 177 MB / 204.9 MB, free: 5.762 MB / 186.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.82e-07/8.82e-07, allocations: 0 / 325.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.358e-05/1.446e-05, allocations: 6.922 kB / 325.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001493/0.001507, allocations: 1.479 MB / 327.2 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004284/0.001936, allocations: 295.1 kB / 327.5 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.628e-05/0.002002, allocations: 4 kB / 327.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.216e-05/0.002084, allocations: 27.67 kB / 327.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 2.807e-05/0.002112, allocations: 11.81 kB / 327.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002859/0.002398, allocations: 119.8 kB / 327.7 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002201/0.002618, allocations: 267.4 kB / 327.9 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.002805, allocations: 134.7 kB / 328.1 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.967e-05/0.002905, allocations: 135.7 kB / 328.2 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.021e-05/0.002985, allocations: 63.78 kB / 328.3 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.43e-05/0.003009, allocations: 24 kB / 328.3 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.316e-05/0.003052, allocations: 27.98 kB / 328.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.181e-05/0.003094, allocations: 51.83 kB / 328.4 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.218e-05/0.003146, allocations: 71.81 kB / 328.4 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.003358, allocations: 251.1 kB / 328.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.00336, allocations: 4 kB / 328.7 MB, free: 12.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.003361, allocations: 4 kB / 328.7 MB, free: 12.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.326e-06/0.003364, allocations: 0 / 328.7 MB, free: 12.47 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0003753/0.003739, allocations: 409.1 kB / 329.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.769e-05/0.003767, allocations: 11.98 kB / 329.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.003892, allocations: 28.83 kB / 329.1 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.004062, allocations: 169.5 kB / 329.3 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.004083, allocations: 16.88 kB / 329.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.348e-05/0.004107, allocations: 32.31 kB / 329.3 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002566/0.004363, allocations: 231.3 kB / 329.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.004372, allocations: 8.188 kB / 329.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.004388, allocations: 12.38 kB / 329.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.004393, allocations: 4.375 kB / 329.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001863/0.004579, allocations: 165.8 kB / 329.7 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005583/0.005137, allocations: 0.5699 MB / 330.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.005326, allocations: 146.8 kB / 330.5 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.936e-05/0.005395, allocations: 68.83 kB / 330.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/0.005408, allocations: 4 kB / 330.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001121/0.00552, allocations: 115.2 kB / 330.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.112e-06/0.005521, allocations: 4 kB / 330.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002587/0.00578, allocations: 219.8 kB / 330.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.889e-05/0.005809, allocations: 63.34 kB / 330.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.036e-05/0.005879, allocations: 149.3 kB / 331.1 MB, free: 9.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.005898, allocations: 41.64 kB / 331.1 MB, free: 9.883 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.823e-05/0.005956, allocations: 132.8 kB / 331.2 MB, free: 9.746 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.181e-05/0.005988, allocations: 67.47 kB / 331.3 MB, free: 9.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.876e-05/0.006047, allocations: 74.02 kB / 331.4 MB, free: 9.598 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.577e-05/0.006122, allocations: 326.8 kB / 331.7 MB, free: 9.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.174e-05/0.006194, allocations: 60.62 kB / 331.8 MB, free: 9.211 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.0063, allocations: 128.1 kB / 331.9 MB, free: 9.062 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001499/0.00645, allocations: 174.7 kB / 332.1 MB, free: 8.867 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.006452, allocations: 0 / 332.1 MB, free: 8.867 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002104/0.006662, allocations: 245.4 kB / 332.3 MB, free: 8.621 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/0.006673, allocations: 8 kB / 332.3 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.006677, allocations: 3.938 kB / 332.3 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.006687, allocations: 7.938 kB / 332.3 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.244e-05/0.00676, allocations: 31.92 kB / 332.3 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.006764, allocations: 4 kB / 332.3 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.706e-05/0.006811, allocations: 23.84 kB / 332.4 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.006823, allocations: 12 kB / 332.4 MB, free: 8.531 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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 8.668e-05/0.00691, allocations: 157.8 kB / 332.5 MB, free: 8.367 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.195e-05/0.006922, allocations: 19.91 kB / 332.6 MB, free: 8.348 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.502e-05/0.006947, allocations: 16.94 kB / 332.6 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.00695, allocations: 7.938 kB / 332.6 MB, free: 8.324 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.006953, allocations: 0 / 332.6 MB, free: 8.324 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.006957, allocations: 3.984 kB / 332.6 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003776/0.007335, allocations: 470.1 kB / 333 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.007335, allocations: 0 / 333 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.736e-05/0.007373, allocations: 23.92 kB / 333.1 MB, free: 7.801 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.007374, allocations: 0 / 333.1 MB, free: 7.801 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.007381, allocations: 0 / 333.1 MB, free: 7.801 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.007382, allocations: 8 kB / 333.1 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/0.007383, allocations: 0 / 333.1 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001703/0.007553, allocations: 269.5 kB / 333.3 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.142e-05/0.007565, allocations: 15.89 kB / 333.4 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.00758, allocations: 12 kB / 333.4 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.058e-05/0.007621, allocations: 8 kB / 333.4 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.796e-05/0.007669, allocations: 27.89 kB / 333.4 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.007676, allocations: 4 kB / 333.4 MB, free: 7.449 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.239e-05/0.007708, allocations: 95.27 kB / 333.5 MB, free: 7.355 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007708, allocations: 0 / 333.5 MB, free: 7.355 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001652/0.007874, allocations: 51.89 kB / 333.5 MB, free: 7.305 MB / 298.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (24): * Single equations (assignments): 20 * 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 6.442e-05/0.007938, allocations: 95.25 kB / 333.6 MB, free: 7.199 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001869/0.008125, allocations: 171.7 kB / 333.8 MB, free: 7.031 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-06/0.008126, allocations: 3.938 kB / 333.8 MB, free: 7.027 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.146e-05/0.008207, allocations: 71.84 kB / 333.9 MB, free: 6.957 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001681/0.008375, allocations: 26.73 kB / 333.9 MB, free: 6.934 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000341/0.008717, allocations: 340.9 kB / 334.2 MB, free: 6.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.908e-05/0.008786, allocations: 120.5 kB / 334.4 MB, free: 6.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.932e-05/0.008825, allocations: 24.5 kB / 334.4 MB, free: 6.406 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.008825, allocations: 3.938 kB / 334.4 MB, free: 6.402 MB / 298.7 MB Notification: Performance of Templates: time 0.002401/0.01123, allocations: 2.223 MB / 336.6 MB, free: 4.18 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.177246697247028]