Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 184.7 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 225.7 MB / 252.5 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 51.91 kB / 370.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2523, allocations: 52.18 MB / 422.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003096/0.2554, allocations: 1.64 MB / 424.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008273/0.2563, allocations: 295.1 kB / 424.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.2564, allocations: 4 kB / 424.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.2565, allocations: 31.67 kB / 424.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.909e-05/0.2566, allocations: 11.81 kB / 424.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005003/0.2571, allocations: 135.8 kB / 424.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003603/0.2574, allocations: 271.5 kB / 424.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000307/0.2578, allocations: 153.4 kB / 425.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001146/0.2579, allocations: 91.7 kB / 425.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.258, allocations: 87.53 kB / 425.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.607e-05/0.2581, allocations: 24 kB / 425.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.671e-05/0.2581, allocations: 35.98 kB / 425.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.293e-05/0.2582, allocations: 63.81 kB / 425.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.2583, allocations: 79.66 kB / 425.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003541/0.2587, allocations: 259.3 kB / 425.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2587, allocations: 4 kB / 425.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2587, allocations: 0 / 425.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.2587, allocations: 3.938 kB / 425.7 MB, free: 11.24 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.0007091/0.2594, allocations: 428.2 kB / 426.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.2594, allocations: 8.031 kB / 426.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.449e-05/0.2595, allocations: 62.73 kB / 426.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.724e-05/0.2596, allocations: 28.73 kB / 426.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003209/0.2599, allocations: 178.2 kB / 426.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.2599, allocations: 20.88 kB / 426.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.664e-05/0.26, allocations: 32.38 kB / 426.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004734/0.2604, allocations: 277.6 kB / 426.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.2605, allocations: 7.922 kB / 426.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.701e-05/0.2605, allocations: 12 kB / 426.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.2605, allocations: 8 kB / 426.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003136/0.2608, allocations: 161.6 kB / 426.9 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.262, allocations: 0.8781 MB / 427.8 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.2623, allocations: 165.3 kB / 427.9 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.2625, allocations: 73.69 kB / 428 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.2625, allocations: 4 kB / 428 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002908/0.2628, allocations: 136.5 kB / 428.1 MB, free: 8.605 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.903e-06/0.2628, allocations: 0 / 428.1 MB, free: 8.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004642/0.2632, allocations: 229.3 kB / 428.4 MB, free: 8.375 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.191e-05/0.2633, allocations: 81.11 kB / 428.5 MB, free: 8.277 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.2635, allocations: 161 kB / 428.6 MB, free: 8.113 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.562e-05/0.2635, allocations: 37.83 kB / 428.6 MB, free: 8.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.2636, allocations: 152.7 kB / 428.8 MB, free: 7.914 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.311e-05/0.2637, allocations: 55.58 kB / 428.9 MB, free: 7.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.2638, allocations: 85.62 kB / 428.9 MB, free: 7.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.2639, allocations: 330.8 kB / 429.3 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.264, allocations: 59.97 kB / 429.3 MB, free: 7.379 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.2642, allocations: 140.5 kB / 429.5 MB, free: 7.211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.2645, allocations: 200.3 kB / 429.6 MB, free: 6.984 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.2645, allocations: 0 / 429.6 MB, free: 6.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003861/0.2649, allocations: 253.9 kB / 429.9 MB, free: 6.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.2649, allocations: 8.281 kB / 429.9 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.2649, allocations: 4 kB / 429.9 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.2649, allocations: 4 kB / 429.9 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.2651, allocations: 39.91 kB / 430 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.2651, allocations: 7.938 kB / 430 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.762e-05/0.2652, allocations: 27.78 kB / 430 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.271e-05/0.2652, allocations: 12 kB / 430 MB, free: 6.629 MB / 334.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.0001651/0.2654, allocations: 165.7 kB / 430.2 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.58e-05/0.2654, allocations: 11.95 kB / 430.2 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003467/0.2658, allocations: 190.5 kB / 430.4 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.2658, allocations: 7.938 kB / 430.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.2658, allocations: 3.984 kB / 430.4 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.2658, allocations: 4 kB / 430.4 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007444/0.2665, allocations: 0.5587 MB / 430.9 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2665, allocations: 0 / 430.9 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.658e-05/0.2666, allocations: 19.92 kB / 431 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.2666, allocations: 3.938 kB / 431 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.2666, allocations: 8 kB / 431 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.2666, allocations: 3.984 kB / 431 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2666, allocations: 0 / 431 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000337/0.267, allocations: 300.5 kB / 431.3 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.052e-05/0.267, allocations: 15.84 kB / 431.3 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.874e-05/0.267, allocations: 7.938 kB / 431.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.762e-05/0.2671, allocations: 8 kB / 431.3 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.549e-05/0.2672, allocations: 23.95 kB / 431.3 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.2672, allocations: 4 kB / 431.3 MB, free: 5.215 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.856e-05/0.2673, allocations: 99.27 kB / 431.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2673, allocations: 0 / 431.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002981/0.2676, allocations: 55.83 kB / 431.5 MB, free: 5.062 MB / 334.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: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0006975/0.2682, allocations: 0.8378 MB / 432.3 MB, free: 4.195 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000326/0.2686, allocations: 171.8 kB / 432.5 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2686, allocations: 0 / 432.5 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001393/0.2687, allocations: 76.28 kB / 432.5 MB, free: 3.953 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.269, allocations: 27.97 kB / 432.6 MB, free: 3.926 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.2714, allocations: 2.091 MB / 434.7 MB, free: 1.695 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001257/0.2715, allocations: 125.3 kB / 434.8 MB, free: 1.555 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.633e-05/0.2716, allocations: 37.86 kB / 434.8 MB, free: 1.516 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.2717, allocations: 59.42 kB / 434.9 MB, free: 1.457 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2717, allocations: 0 / 434.9 MB, free: 1.457 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02958/0.3013, allocations: 4.422 MB / 439.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.66, allocations: 0 / 439.3 MB, free: 13.18 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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: 12.932978842407465]