Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001385/0.001385, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001553/0.001553, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.378/1.378, allocations: 225.6 MB / 252.5 MB, free: 13.06 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_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 51.92 kB / 370.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2604, allocations: 52.18 MB / 422.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003068/0.2634, allocations: 1.717 MB / 424.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000726/0.2642, allocations: 295.1 kB / 424.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.352e-05/0.2642, allocations: 4 kB / 424.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.2644, allocations: 27.67 kB / 424.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.652e-05/0.2645, allocations: 19.81 kB / 424.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004274/0.2649, allocations: 135.7 kB / 424.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003733/0.2653, allocations: 275.5 kB / 425.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002733/0.2655, allocations: 138 kB / 425.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.2656, allocations: 95.7 kB / 425.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.2658, allocations: 95.59 kB / 425.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.868e-05/0.2658, allocations: 24 kB / 425.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.501e-05/0.2659, allocations: 43.92 kB / 425.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.076e-05/0.266, allocations: 51.89 kB / 425.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.2661, allocations: 107.4 kB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003102/0.2664, allocations: 255.3 kB / 425.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2664, allocations: 0 / 425.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2664, allocations: 0 / 425.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.2664, allocations: 0 / 425.9 MB, free: 11.39 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.0006402/0.267, allocations: 428.2 kB / 426.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.2671, allocations: 12.03 kB / 426.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.842e-05/0.2671, allocations: 62.67 kB / 426.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.269e-05/0.2672, allocations: 28.8 kB / 426.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000282/0.2675, allocations: 174.2 kB / 426.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.2675, allocations: 20.88 kB / 426.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.046e-05/0.2675, allocations: 32.38 kB / 426.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004798/0.268, allocations: 265.8 kB / 426.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.268, allocations: 7.938 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.656e-05/0.2681, allocations: 15.94 kB / 426.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.2681, allocations: 4 kB / 426.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000349/0.2684, allocations: 165.5 kB / 427 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.2696, allocations: 0.9366 MB / 428 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000274/0.2699, allocations: 161.3 kB / 428.1 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.27, allocations: 69.69 kB / 428.2 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.27, allocations: 12 kB / 428.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.2703, allocations: 132.5 kB / 428.3 MB, free: 8.707 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.343e-06/0.2703, allocations: 0 / 428.3 MB, free: 8.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004767/0.2708, allocations: 221.4 kB / 428.6 MB, free: 8.484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.308e-05/0.2708, allocations: 81.11 kB / 428.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.271, allocations: 161.2 kB / 428.8 MB, free: 8.223 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.497e-05/0.271, allocations: 37.69 kB / 428.8 MB, free: 8.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.2711, allocations: 144.8 kB / 429 MB, free: 8.031 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.45e-05/0.2712, allocations: 63.48 kB / 429 MB, free: 7.969 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.2713, allocations: 85.61 kB / 429.1 MB, free: 7.879 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.2714, allocations: 326.8 kB / 429.4 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.2715, allocations: 59.97 kB / 429.5 MB, free: 7.492 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.2717, allocations: 140.5 kB / 429.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002751/0.272, allocations: 208.8 kB / 429.8 MB, free: 7.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.272, allocations: 4 kB / 429.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003859/0.2724, allocations: 257.3 kB / 430.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.2724, allocations: 8 kB / 430.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.2724, allocations: 0 / 430.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.2724, allocations: 4 kB / 430.1 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.2725, allocations: 39.91 kB / 430.1 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.2726, allocations: 4 kB / 430.1 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.2727, allocations: 23.84 kB / 430.2 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.919e-05/0.2727, allocations: 12 kB / 430.2 MB, free: 6.738 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.000167/0.2729, allocations: 165.9 kB / 430.3 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.626e-05/0.2729, allocations: 19.89 kB / 430.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003357/0.2732, allocations: 190.4 kB / 430.6 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.2732, allocations: 7.984 kB / 430.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2732, allocations: 0 / 430.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.2732, allocations: 0 / 430.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007435/0.274, allocations: 0.5665 MB / 431.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.274, allocations: 4 kB / 431.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.875e-05/0.2741, allocations: 19.88 kB / 431.1 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.2741, allocations: 3.938 kB / 431.2 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.2741, allocations: 11.98 kB / 431.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.2741, allocations: 0 / 431.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2741, allocations: 0 / 431.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003325/0.2744, allocations: 292.4 kB / 431.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.058e-05/0.2744, allocations: 19.89 kB / 431.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/0.2745, allocations: 7.938 kB / 431.5 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.019e-05/0.2746, allocations: 7.984 kB / 431.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.886e-05/0.2746, allocations: 23.97 kB / 431.5 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.2746, allocations: 8 kB / 431.5 MB, free: 5.312 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.051e-05/0.2747, allocations: 99.2 kB / 431.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2747, allocations: 0 / 431.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002927/0.275, allocations: 55.84 kB / 431.7 MB, free: 5.16 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,transition1.enableFire,step.active,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.0006677/0.2757, allocations: 0.8339 MB / 432.5 MB, free: 4.297 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000317/0.276, allocations: 171.8 kB / 432.7 MB, free: 4.129 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.276, allocations: 0.5625 kB / 432.7 MB, free: 4.129 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.2761, allocations: 87.72 kB / 432.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.2764, allocations: 19.98 kB / 432.8 MB, free: 4.023 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002324/0.2787, allocations: 2.075 MB / 434.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003871/0.2791, allocations: 0.7402 MB / 435.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.744e-05/0.2792, allocations: 17.95 kB / 435.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.2793, allocations: 63.41 kB / 435.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2793, allocations: 0 / 435.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03017/0.3095, allocations: 3.997 MB / 439.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11, allocations: 3.859 kB / 439.7 MB, free: 13.09 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 13.30783435003832]