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.001339/0.001339, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001458/0.001458, allocations: 209.9 kB / 24.48 MB, free: 3.934 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.406/1.406, allocations: 230.5 MB / 258.1 MB, free: 7.762 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_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 0.003032/0.003032, allocations: 63.84 kB / 379 MB, free: 2.324 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2423, allocations: 53.41 MB / 432.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003127/0.2454, allocations: 1.679 MB / 434 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006831/0.2461, allocations: 295.1 kB / 434.3 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.439e-05/0.2462, allocations: 7.938 kB / 434.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.2463, allocations: 23.73 kB / 434.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.958e-05/0.2463, allocations: 23.73 kB / 434.4 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003778/0.2467, allocations: 119.8 kB / 434.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003364/0.2471, allocations: 275.4 kB / 434.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002787/0.2473, allocations: 160.8 kB / 434.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.2474, allocations: 91.7 kB / 435 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.2476, allocations: 87.53 kB / 435.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.574e-05/0.2476, allocations: 20 kB / 435.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.819e-05/0.2477, allocations: 28 kB / 435.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.768e-05/0.2478, allocations: 55.83 kB / 435.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.473e-05/0.2478, allocations: 87.58 kB / 435.3 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003241/0.2482, allocations: 262.6 kB / 435.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2482, allocations: 0 / 435.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2482, allocations: 0 / 435.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.969e-06/0.2482, allocations: 0 / 435.5 MB, free: 3.359 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006538/0.2488, allocations: 421.2 kB / 436 MB, free: 2.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.2489, allocations: 11.98 kB / 436 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002091/0.2491, allocations: 28.8 kB / 436 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003152/0.2494, allocations: 182.1 kB / 436.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.2494, allocations: 20.88 kB / 436.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.028e-05/0.2495, allocations: 28.38 kB / 436.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004518/0.2499, allocations: 277.7 kB / 436.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.25, allocations: 192 / 436.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.198e-05/0.25, allocations: 15.94 kB / 436.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.25, allocations: 4 kB / 436.5 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003153/0.2503, allocations: 161.6 kB / 436.7 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.2514, allocations: 0.8318 MB / 437.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002841/0.2517, allocations: 157 kB / 437.7 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.2518, allocations: 69.64 kB / 437.7 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.2518, allocations: 11.98 kB / 437.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002073/0.252, allocations: 140.1 kB / 437.9 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.462e-06/0.252, allocations: 0 / 437.9 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004308/0.2525, allocations: 221.3 kB / 438.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.2525, allocations: 89.05 kB / 438.2 MB, free: 0.543 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.2527, allocations: 156.7 kB / 438.3 MB, free: 392 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.804e-05/0.2527, allocations: 37.7 kB / 438.4 MB, free: 348 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.2528, allocations: 148.7 kB / 438.5 MB, free: 192 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.524e-05/0.2529, allocations: 59.53 kB / 438.6 MB, free: 132 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.253, allocations: 81.42 kB / 438.7 MB, free: 44 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.2531, allocations: 331 kB / 439 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.2532, allocations: 63.97 kB / 439 MB, free: 15.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.2534, allocations: 136.5 kB / 439.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.2537, allocations: 204.2 kB / 439.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2537, allocations: 0 / 439.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003993/0.2541, allocations: 253.3 kB / 439.6 MB, free: 15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.2541, allocations: 8 kB / 439.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.2541, allocations: 3.938 kB / 439.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.2541, allocations: 4 kB / 439.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.2543, allocations: 31.92 kB / 439.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.2543, allocations: 12.22 kB / 439.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.2544, allocations: 27.84 kB / 439.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.2544, allocations: 8 kB / 439.7 MB, free: 14.91 MB / 350.1 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 0.0001564/0.2546, allocations: 169.6 kB / 439.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.531e-05/0.2546, allocations: 11.95 kB / 439.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.575e-05/0.2546, allocations: 20.92 kB / 439.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.2546, allocations: 4 kB / 439.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2547, allocations: 0 / 439.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2547, allocations: 0 / 439.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006731/0.2553, allocations: 0.4975 MB / 440.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2553, allocations: 0 / 440.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.425e-05/0.2554, allocations: 19.92 kB / 440.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2554, allocations: 0 / 440.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.2554, allocations: 4 kB / 440.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.666e-06/0.2554, allocations: 4 kB / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2554, allocations: 0 / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003211/0.2557, allocations: 280.1 kB / 440.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.087e-05/0.2558, allocations: 11.91 kB / 440.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.2558, allocations: 8 kB / 440.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.628e-05/0.2559, allocations: 7.984 kB / 440.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.792e-05/0.256, allocations: 27.91 kB / 440.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.256, allocations: 8 kB / 440.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.29e-05/0.256, allocations: 95.27 kB / 440.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.256, allocations: 3.938 kB / 440.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002946/0.2563, allocations: 51.88 kB / 440.9 MB, free: 13.62 MB / 350.1 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 0.0001122/0.2564, allocations: 107.1 kB / 441 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003308/0.2568, allocations: 176.2 kB / 441.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.2568, allocations: 0 / 441.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.2569, allocations: 67.77 kB / 441.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.2572, allocations: 24 kB / 441.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005984/0.2578, allocations: 358.1 kB / 441.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001323/0.2579, allocations: 125.7 kB / 441.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.901e-05/0.258, allocations: 19.44 kB / 441.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of SimCode: time 4.4e-07/0.258, allocations: 3.938 kB / 441.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of Templates: time 0.004254/0.2622, allocations: 2.292 MB / 444.1 MB, free: 10.41 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/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: 6.883174229878932]