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.0008824/0.0008824, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.0009755/0.0009755, allocations: 159.9 kB / 24.91 MB, free: 8.719 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.9824/0.9824, allocations: 177 MB / 205.2 MB, free: 5.047 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 2.164e-06/2.164e-06, allocations: 0 / 273.4 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.86e-05/3.077e-05, allocations: 5.266 kB / 273.4 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00355/0.003581, allocations: 1.547 MB / 274.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008362/0.004417, allocations: 306.8 kB / 275.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.004532, allocations: 4 kB / 275.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001646/0.004696, allocations: 23.73 kB / 275.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.936e-05/0.004756, allocations: 15.75 kB / 275.3 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004783/0.005234, allocations: 119.8 kB / 275.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003833/0.005617, allocations: 267.4 kB / 275.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003307/0.005948, allocations: 139.5 kB / 275.8 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.006121, allocations: 131.8 kB / 275.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.006278, allocations: 67.78 kB / 276 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.193e-05/0.00632, allocations: 24 kB / 276 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.185e-05/0.006402, allocations: 27.94 kB / 276 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.062e-05/0.006472, allocations: 59.8 kB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.546e-05/0.006548, allocations: 59.83 kB / 276.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002977/0.006845, allocations: 179.3 kB / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.006849, allocations: 0 / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.006851, allocations: 0 / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.006857, allocations: 0 / 276.3 MB, free: 14.09 MB / 266.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.0005705/0.007427, allocations: 387.7 kB / 276.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.007471, allocations: 15.98 kB / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002406/0.007712, allocations: 44.89 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.007959, allocations: 153.5 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.659e-05/0.007995, allocations: 20.88 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.21e-05/0.008027, allocations: 28.36 kB / 277 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003138/0.008341, allocations: 188 kB / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.008355, allocations: 4.172 kB / 277.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.008377, allocations: 16.3 kB / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.008389, allocations: 12.38 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001391/0.008529, allocations: 63.34 kB / 277.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007889/0.009318, allocations: 464.2 kB / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/0.009527, allocations: 106.5 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.279e-05/0.00959, allocations: 40.84 kB / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.009608, allocations: 4 kB / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001377/0.009746, allocations: 99.27 kB / 277.9 MB, free: 12.37 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.954e-06/0.009748, allocations: 0 / 277.9 MB, free: 12.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002481/0.009996, allocations: 122.7 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.01005, allocations: 71.33 kB / 278.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.01017, allocations: 162.2 kB / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.307e-05/0.01021, allocations: 33.7 kB / 278.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.519e-05/0.01029, allocations: 136.8 kB / 278.5 MB, free: 11.81 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.266e-05/0.01035, allocations: 63.45 kB / 278.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.617e-05/0.01044, allocations: 73.97 kB / 278.6 MB, free: 11.67 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.01056, allocations: 326.8 kB / 278.9 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.282e-05/0.01061, allocations: 28.64 kB / 278.9 MB, free: 11.31 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.312e-05/0.0107, allocations: 92.06 kB / 279 MB, free: 11.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.01088, allocations: 142.6 kB / 279.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.01088, allocations: 0 / 279.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000248/0.01113, allocations: 161.4 kB / 279.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.01115, allocations: 8.219 kB / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.01116, allocations: 4 kB / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/0.01118, allocations: 7.984 kB / 279.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.01134, allocations: 31.92 kB / 279.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.01135, allocations: 7.938 kB / 279.4 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.819e-05/0.01145, allocations: 23.84 kB / 279.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.73e-05/0.01146, allocations: 12 kB / 279.4 MB, free: 10.78 MB / 266.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,transition1.condition,transition2.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 (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 0.0001137/0.01158, allocations: 141.7 kB / 279.6 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.724e-05/0.0116, allocations: 19.92 kB / 279.6 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.466e-05/0.01165, allocations: 24.92 kB / 279.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.01165, allocations: 4 kB / 279.6 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.01166, allocations: 3.938 kB / 279.6 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.01166, allocations: 0 / 279.6 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004693/0.01213, allocations: 327.3 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.01213, allocations: 0 / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.113e-05/0.01221, allocations: 27.92 kB / 280 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.01222, allocations: 0 / 280 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.01223, allocations: 7.938 kB / 280 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.01223, allocations: 0 / 280 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.01224, allocations: 4 kB / 280 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001932/0.01243, allocations: 220.8 kB / 280.2 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.652e-05/0.01244, allocations: 11.91 kB / 280.2 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.434e-05/0.01247, allocations: 11.94 kB / 280.2 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.409e-05/0.01254, allocations: 7.984 kB / 280.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.745e-05/0.0126, allocations: 15.97 kB / 280.2 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.01261, allocations: 8 kB / 280.2 MB, free: 9.91 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.689e-05/0.01264, allocations: 20.83 kB / 280.3 MB, free: 9.887 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01264, allocations: 0 / 280.3 MB, free: 9.887 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002787/0.01292, allocations: 47.89 kB / 280.3 MB, free: 9.84 MB / 266.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 0.0001071/0.01303, allocations: 88.42 kB / 280.4 MB, free: 9.746 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002127/0.01324, allocations: 116.7 kB / 280.5 MB, free: 9.629 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.01324, allocations: 3.938 kB / 280.5 MB, free: 9.625 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.692e-05/0.01334, allocations: 60.77 kB / 280.6 MB, free: 9.562 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.01359, allocations: 23.97 kB / 280.6 MB, free: 9.539 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004937/0.01409, allocations: 309.3 kB / 280.9 MB, free: 9.211 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.648e-05/0.01415, allocations: 76.42 kB / 281 MB, free: 9.117 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.169e-05/0.01424, allocations: 29.92 kB / 281 MB, free: 9.086 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.01434, allocations: 79.38 kB / 281.1 MB, free: 9.008 MB / 266.7 MB Notification: Performance of SimCode: time 1.263e-06/0.01435, allocations: 0 / 281.1 MB, free: 9.008 MB / 266.7 MB Notification: Performance of Templates: time 0.004561/0.01891, allocations: 1.828 MB / 282.9 MB, free: 7.215 MB / 266.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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5508587202057242]