Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009659/0.0009659, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8835/0.8835, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 324.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.411e-05/1.586e-05, allocations: 8.609 kB / 324.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002146/0.002162, allocations: 1.695 MB / 326.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005814/0.002743, allocations: 295.1 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.292e-05/0.002836, allocations: 11.94 kB / 326.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.002962, allocations: 19.73 kB / 326.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.581e-05/0.003008, allocations: 27.73 kB / 326.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003613/0.003369, allocations: 119.8 kB / 326.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002489/0.003618, allocations: 275.4 kB / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/0.003842, allocations: 154 kB / 327.1 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.003956, allocations: 135.7 kB / 327.2 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.692e-05/0.004053, allocations: 79.7 kB / 327.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.86e-05/0.004082, allocations: 24 kB / 327.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.914e-05/0.004141, allocations: 28 kB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.242e-05/0.004193, allocations: 55.81 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.844e-05/0.004262, allocations: 75.75 kB / 327.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002445/0.004506, allocations: 259.1 kB / 327.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.814e-06/0.004508, allocations: 0 / 327.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.004509, allocations: 0 / 327.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.004512, allocations: 4 kB / 327.8 MB, free: 12.59 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.0004915/0.005004, allocations: 423.9 kB / 328.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.005046, allocations: 12.03 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.264e-05/0.005098, allocations: 62.72 kB / 328.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001697/0.005268, allocations: 36.78 kB / 328.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/0.005489, allocations: 173.4 kB / 328.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.045e-05/0.00552, allocations: 20.88 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.021e-05/0.00555, allocations: 32.36 kB / 328.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003117/0.005862, allocations: 265.9 kB / 328.8 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.005872, allocations: 192 / 328.8 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.005892, allocations: 16.36 kB / 328.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.005899, allocations: 12.06 kB / 328.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002016/0.006101, allocations: 169.8 kB / 329 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007571/0.006858, allocations: 0.8712 MB / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001926/0.007051, allocations: 153.4 kB / 330 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.161e-05/0.007122, allocations: 69.69 kB / 330 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.007141, allocations: 7.938 kB / 330.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000149/0.00729, allocations: 139.4 kB / 330.2 MB, free: 9.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.007291, allocations: 0 / 330.2 MB, free: 9.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003042/0.007595, allocations: 226.4 kB / 330.4 MB, free: 9.754 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.007637, allocations: 85.14 kB / 330.5 MB, free: 9.652 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.713e-05/0.007724, allocations: 157 kB / 330.6 MB, free: 9.492 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.007744, allocations: 37.7 kB / 330.7 MB, free: 9.449 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.273e-05/0.007817, allocations: 152.6 kB / 330.8 MB, free: 9.293 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.433e-05/0.007851, allocations: 59.53 kB / 330.9 MB, free: 9.234 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.701e-05/0.007918, allocations: 81.64 kB / 331 MB, free: 9.148 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.817e-05/0.007996, allocations: 322.8 kB / 331.3 MB, free: 8.824 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.687e-05/0.008073, allocations: 59.97 kB / 331.3 MB, free: 8.766 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.008178, allocations: 140.5 kB / 331.5 MB, free: 8.598 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001739/0.008352, allocations: 189 kB / 331.7 MB, free: 8.383 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.008356, allocations: 11.92 kB / 331.7 MB, free: 8.371 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002368/0.008593, allocations: 257.3 kB / 331.9 MB, free: 8.113 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.008605, allocations: 4 kB / 331.9 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.00861, allocations: 4 kB / 331.9 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.008622, allocations: 4 kB / 331.9 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.225e-05/0.008704, allocations: 31.92 kB / 332 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.00871, allocations: 4 kB / 332 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.905e-05/0.008769, allocations: 23.84 kB / 332 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.008783, allocations: 19.94 kB / 332 MB, free: 8.023 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.763e-05/0.00888, allocations: 161.9 kB / 332.2 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.488e-05/0.008895, allocations: 15.95 kB / 332.2 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.821e-05/0.008923, allocations: 20.86 kB / 332.2 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.008928, allocations: 4 kB / 332.2 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.008932, allocations: 0 / 332.2 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.008938, allocations: 4 kB / 332.2 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000439/0.009377, allocations: 0.5384 MB / 332.8 MB, free: 7.219 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.009378, allocations: 0 / 332.8 MB, free: 7.219 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.377e-05/0.009412, allocations: 16 kB / 332.8 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.009413, allocations: 0 / 332.8 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.318e-06/0.009423, allocations: 11.92 kB / 332.8 MB, free: 7.191 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.009424, allocations: 4 kB / 332.8 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.009428, allocations: 3.984 kB / 332.8 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001833/0.009612, allocations: 283.8 kB / 333.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.458e-06/0.009621, allocations: 11.91 kB / 333.1 MB, free: 6.875 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.009638, allocations: 11.98 kB / 333.1 MB, free: 6.863 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.648e-05/0.009685, allocations: 8 kB / 333.1 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.047e-05/0.009735, allocations: 19.91 kB / 333.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.009744, allocations: 11.98 kB / 333.1 MB, free: 6.824 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.549e-05/0.00978, allocations: 95.27 kB / 333.2 MB, free: 6.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00978, allocations: 4 kB / 333.2 MB, free: 6.727 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001897/0.009969, allocations: 51.83 kB / 333.3 MB, free: 6.676 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 0.0003624/0.01033, allocations: 0.809 MB / 334.1 MB, free: 5.836 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002139/0.01055, allocations: 175.6 kB / 334.3 MB, free: 5.664 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01055, allocations: 0 / 334.3 MB, free: 5.664 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.46e-05/0.01062, allocations: 63.91 kB / 334.3 MB, free: 5.602 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001919/0.01081, allocations: 24.56 kB / 334.4 MB, free: 5.578 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.01241, allocations: 2.071 MB / 336.4 MB, free: 3.363 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.278e-05/0.0125, allocations: 129.6 kB / 336.5 MB, free: 3.219 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.142e-05/0.01256, allocations: 21.94 kB / 336.6 MB, free: 3.199 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.355e-05/0.01264, allocations: 56.48 kB / 336.6 MB, free: 3.141 MB / 298.7 MB Notification: Performance of SimCode: time 8.81e-07/0.01265, allocations: 0 / 336.6 MB, free: 3.141 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01445/0.0271, allocations: 4.268 MB / 340.9 MB, free: 15 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.694/6.721, allocations: 4 kB / 340.9 MB, free: 15 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 8.352919463068247]