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.001929/0.001929, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 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.002726/0.002726, allocations: 215.5 kB / 24.48 MB, free: 3.953 MB / 14.72 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 1.599/1.599, allocations: 230.5 MB / 258.1 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001912/0.001912, allocations: 59.89 kB / 379 MB, free: 2.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2391, allocations: 53.41 MB / 432.4 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002682/0.2417, allocations: 1.463 MB / 433.8 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006711/0.2424, allocations: 279.2 kB / 434.1 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.563e-05/0.2425, allocations: 7.938 kB / 434.1 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.2426, allocations: 27.73 kB / 434.1 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.629e-05/0.2427, allocations: 11.81 kB / 434.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003993/0.2431, allocations: 123.8 kB / 434.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003314/0.2434, allocations: 263.5 kB / 434.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002682/0.2437, allocations: 134.7 kB / 434.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.2438, allocations: 91.69 kB / 434.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.2439, allocations: 79.59 kB / 434.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.12e-05/0.244, allocations: 24 kB / 434.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.572e-05/0.244, allocations: 35.88 kB / 434.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.422e-05/0.2441, allocations: 47.84 kB / 434.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.71e-05/0.2442, allocations: 87.62 kB / 435 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003202/0.2445, allocations: 245.7 kB / 435.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.2445, allocations: 3.984 kB / 435.3 MB, free: 3.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2445, allocations: 0 / 435.3 MB, free: 3.602 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2445, allocations: 0 / 435.3 MB, free: 3.602 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006598/0.2452, allocations: 409 kB / 435.7 MB, free: 3.172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.2452, allocations: 15.98 kB / 435.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000203/0.2454, allocations: 24.83 kB / 435.7 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.2457, allocations: 170.2 kB / 435.9 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.558e-05/0.2458, allocations: 20.88 kB / 435.9 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.2458, allocations: 32.36 kB / 435.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004163/0.2462, allocations: 239.2 kB / 436.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.2463, allocations: 192 / 436.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.563e-05/0.2463, allocations: 15.94 kB / 436.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.2463, allocations: 4 kB / 436.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000289/0.2466, allocations: 153.6 kB / 436.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008972/0.2475, allocations: 0.5697 MB / 436.9 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.2478, allocations: 162.2 kB / 437.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.2479, allocations: 72.39 kB / 437.1 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.2479, allocations: 8 kB / 437.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001893/0.2481, allocations: 118.3 kB / 437.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.744e-06/0.2481, allocations: 0 / 437.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004252/0.2485, allocations: 217.3 kB / 437.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.523e-05/0.2486, allocations: 59.41 kB / 437.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.2487, allocations: 150 kB / 437.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.2487, allocations: 37.7 kB / 437.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.2488, allocations: 124.9 kB / 437.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.926e-05/0.2489, allocations: 71.45 kB / 437.9 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.249, allocations: 74.02 kB / 438 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.2492, allocations: 330.8 kB / 438.3 MB, free: 412 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.2493, allocations: 60.62 kB / 438.3 MB, free: 352 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.2495, allocations: 128.1 kB / 438.5 MB, free: 200 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002546/0.2497, allocations: 174.6 kB / 438.6 MB, free: 0 / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2497, allocations: 0 / 438.6 MB, free: 0 / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003763/0.2501, allocations: 249.3 kB / 438.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.2501, allocations: 8 kB / 438.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.2501, allocations: 0 / 438.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.2501, allocations: 4 kB / 438.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.2503, allocations: 31.92 kB / 438.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.2503, allocations: 4 kB / 438.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.468e-05/0.2504, allocations: 31.72 kB / 439 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.672e-05/0.2504, allocations: 8.219 kB / 439 MB, free: 15.66 MB / 350.1 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 0.0001502/0.2505, allocations: 161.7 kB / 439.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.768e-05/0.2505, allocations: 19.84 kB / 439.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.039e-05/0.2506, allocations: 16.94 kB / 439.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2506, allocations: 4 kB / 439.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2506, allocations: 3.938 kB / 439.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.2506, allocations: 3.984 kB / 439.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006531/0.2513, allocations: 466.9 kB / 439.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2513, allocations: 0 / 439.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.516e-05/0.2513, allocations: 27.92 kB / 439.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2513, allocations: 4 kB / 439.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.2514, allocations: 4 kB / 439.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2514, allocations: 0 / 439.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.2514, allocations: 4 kB / 439.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000315/0.2517, allocations: 275.9 kB / 439.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.42e-05/0.2517, allocations: 23.83 kB / 440 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.297e-05/0.2517, allocations: 4 kB / 440 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.41e-05/0.2518, allocations: 8 kB / 440 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.203e-05/0.2519, allocations: 23.95 kB / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.2519, allocations: 4 kB / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.579e-05/0.252, allocations: 102.8 kB / 440.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.252, allocations: 0 / 440.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002876/0.2523, allocations: 43.89 kB / 440.1 MB, free: 14.43 MB / 350.1 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.0001215/0.2524, allocations: 103.2 kB / 440.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003174/0.2527, allocations: 159.8 kB / 440.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.2527, allocations: 4 kB / 440.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.2528, allocations: 72.28 kB / 440.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000293/0.2531, allocations: 20 kB / 440.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005846/0.2537, allocations: 341.2 kB / 440.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001203/0.2538, allocations: 120.5 kB / 440.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.033e-05/0.2539, allocations: 19.44 kB / 441 MB, free: 13.54 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2539, allocations: 4 kB / 441 MB, free: 13.54 MB / 350.1 MB Notification: Performance of Templates: time 0.004234/0.2581, allocations: 2.215 MB / 443.2 MB, free: 11.32 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/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: 6.983822272159159]