Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.0008233/0.0008233, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.003471/0.003471, allocations: 156.7 kB / 24.7 MB, free: 9.418 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.8537/0.8537, allocations: 177 MB / 204.9 MB, free: 5.746 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.452e-06/1.452e-06, allocations: 0 / 325.7 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.78e-05/1.926e-05, allocations: 3.266 kB / 325.7 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001825/0.001845, allocations: 1.706 MB / 327.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004766/0.002321, allocations: 287.1 kB / 327.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.973e-05/0.002401, allocations: 4 kB / 327.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.002515, allocations: 27.67 kB / 327.8 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.289e-05/0.002557, allocations: 23.78 kB / 327.8 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003082/0.002866, allocations: 119.7 kB / 327.9 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002257/0.003091, allocations: 275.5 kB / 328.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002089/0.0033, allocations: 157.9 kB / 328.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.003411, allocations: 139.7 kB / 328.5 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.822e-05/0.003509, allocations: 71.77 kB / 328.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.924e-05/0.003538, allocations: 24 kB / 328.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.334e-05/0.003591, allocations: 24 kB / 328.6 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.906e-05/0.003641, allocations: 59.81 kB / 328.6 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.904e-05/0.0037, allocations: 67.81 kB / 328.7 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.003923, allocations: 267 kB / 329 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.724e-06/0.003925, allocations: 4 kB / 329 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.003926, allocations: 0 / 329 MB, free: 12.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.97e-06/0.003931, allocations: 0 / 329 MB, free: 12.18 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0004661/0.004397, allocations: 421 kB / 329.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.004432, allocations: 19.92 kB / 329.4 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.004565, allocations: 32.78 kB / 329.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001897/0.004755, allocations: 165.5 kB / 329.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.00478, allocations: 20.88 kB / 329.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.414e-05/0.004804, allocations: 28.36 kB / 329.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.005085, allocations: 269.9 kB / 329.9 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.005095, allocations: 4.188 kB / 329.9 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.005113, allocations: 16.36 kB / 329.9 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.00512, allocations: 8.312 kB / 329.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001984/0.005318, allocations: 165.8 kB / 330.1 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007001/0.006019, allocations: 0.836 MB / 330.9 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000194/0.006213, allocations: 153.4 kB / 331.1 MB, free: 9.926 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.414e-05/0.006287, allocations: 69.78 kB / 331.1 MB, free: 9.852 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.006302, allocations: 4 kB / 331.1 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001397/0.006442, allocations: 145.6 kB / 331.3 MB, free: 9.688 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 3.025e-06/0.006445, allocations: 3.984 kB / 331.3 MB, free: 9.684 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002899/0.006735, allocations: 225.2 kB / 331.5 MB, free: 9.457 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.006777, allocations: 93.09 kB / 331.6 MB, free: 9.348 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.434e-05/0.006862, allocations: 157.2 kB / 331.8 MB, free: 9.188 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.006882, allocations: 37.7 kB / 331.8 MB, free: 9.145 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.965e-05/0.006951, allocations: 144.7 kB / 331.9 MB, free: 8.996 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.312e-05/0.006985, allocations: 55.59 kB / 332 MB, free: 8.941 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.767e-05/0.007052, allocations: 85.62 kB / 332.1 MB, free: 8.852 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.54e-05/0.007138, allocations: 327 kB / 332.4 MB, free: 8.523 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.477e-05/0.007212, allocations: 63.97 kB / 332.5 MB, free: 8.461 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.007318, allocations: 140.5 kB / 332.6 MB, free: 8.293 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.007484, allocations: 180.5 kB / 332.8 MB, free: 8.086 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.007488, allocations: 8 kB / 332.8 MB, free: 8.078 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000236/0.007724, allocations: 253.3 kB / 333 MB, free: 7.824 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.007737, allocations: 4 kB / 333 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.007743, allocations: 4 kB / 333 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.007755, allocations: 4 kB / 333 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.216e-05/0.007837, allocations: 31.92 kB / 333.1 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.007846, allocations: 16.2 kB / 333.1 MB, free: 7.766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.589e-05/0.007902, allocations: 27.78 kB / 333.1 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.007915, allocations: 16 kB / 333.1 MB, free: 7.723 MB / 298.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,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 9.525e-05/0.008011, allocations: 153.8 kB / 333.3 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.307e-05/0.008024, allocations: 15.89 kB / 333.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.693e-05/0.008051, allocations: 16.88 kB / 333.3 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.008053, allocations: 4 kB / 333.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.008057, allocations: 0 / 333.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.008067, allocations: 7.984 kB / 333.3 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004009/0.008468, allocations: 0.4892 MB / 333.8 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.008469, allocations: 0 / 333.8 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.375e-05/0.008513, allocations: 23.92 kB / 333.8 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.008515, allocations: 0 / 333.8 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.008525, allocations: 4 kB / 333.8 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.008526, allocations: 3.938 kB / 333.8 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.008527, allocations: 0 / 333.8 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.008708, allocations: 284.8 kB / 334.1 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.239e-05/0.00872, allocations: 15.84 kB / 334.1 MB, free: 6.641 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.747e-05/0.008738, allocations: 8 kB / 334.1 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.547e-05/0.008783, allocations: 12 kB / 334.2 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.431e-05/0.008837, allocations: 27.95 kB / 334.2 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-06/0.008844, allocations: 4 kB / 334.2 MB, free: 6.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.563e-05/0.00888, allocations: 99.2 kB / 334.3 MB, free: 6.492 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00888, allocations: 0 / 334.3 MB, free: 6.492 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001826/0.009063, allocations: 47.89 kB / 334.3 MB, free: 6.445 MB / 298.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,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 7.548e-05/0.009138, allocations: 111.2 kB / 334.4 MB, free: 6.328 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002059/0.009344, allocations: 172.3 kB / 334.6 MB, free: 6.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/0.009345, allocations: 4.062 kB / 334.6 MB, free: 6.156 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.768e-05/0.009423, allocations: 75.77 kB / 334.7 MB, free: 6.082 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.00962, allocations: 19.98 kB / 334.7 MB, free: 6.062 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004079/0.01003, allocations: 357.3 kB / 335 MB, free: 5.676 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.561e-05/0.0101, allocations: 125.6 kB / 335.2 MB, free: 5.531 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.032e-05/0.01014, allocations: 20.5 kB / 335.2 MB, free: 5.512 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01014, allocations: 0 / 335.2 MB, free: 5.512 MB / 298.7 MB Notification: Performance of Templates: time 0.002507/0.01265, allocations: 2.297 MB / 337.5 MB, free: 3.215 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.226363352499902]