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.0008572/0.0008572, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008357/0.0008357, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9049/0.9049, allocations: 173.3 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 1.533e-06/1.533e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.95e-05/2.103e-05, allocations: 3.688 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002041/0.002062, allocations: 1.668 MB / 320.1 MB, free: 4.695 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005076/0.002569, allocations: 287.1 kB / 320.3 MB, free: 4.414 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.88e-05/0.002648, allocations: 7.938 kB / 320.4 MB, free: 4.406 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.002763, allocations: 31.67 kB / 320.4 MB, free: 4.375 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.052e-05/0.002804, allocations: 15.75 kB / 320.4 MB, free: 4.359 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000354/0.003158, allocations: 131.7 kB / 320.5 MB, free: 4.23 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002382/0.003396, allocations: 271.5 kB / 320.8 MB, free: 3.965 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/0.003607, allocations: 154 kB / 320.9 MB, free: 3.812 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.003713, allocations: 139.7 kB / 321.1 MB, free: 3.676 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.126e-05/0.003804, allocations: 75.7 kB / 321.2 MB, free: 3.602 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.847e-05/0.003833, allocations: 24 kB / 321.2 MB, free: 3.578 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.647e-05/0.003899, allocations: 31.98 kB / 321.2 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.528e-05/0.003945, allocations: 55.81 kB / 321.3 MB, free: 3.492 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.862e-05/0.004003, allocations: 71.81 kB / 321.3 MB, free: 3.422 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002302/0.004233, allocations: 267.1 kB / 321.6 MB, free: 3.16 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.004241, allocations: 0 / 321.6 MB, free: 3.16 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.004242, allocations: 0 / 321.6 MB, free: 3.16 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.004245, allocations: 4 kB / 321.6 MB, free: 3.156 MB / 282.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.0004616/0.004707, allocations: 412.5 kB / 322 MB, free: 2.727 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.004743, allocations: 12.92 kB / 322 MB, free: 2.715 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.761e-05/0.004791, allocations: 66.72 kB / 322.1 MB, free: 2.641 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.034e-05/0.004831, allocations: 24.8 kB / 322.1 MB, free: 2.617 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001999/0.005031, allocations: 181.3 kB / 322.3 MB, free: 2.414 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.005056, allocations: 20.88 kB / 322.3 MB, free: 2.395 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.499e-05/0.005081, allocations: 32.38 kB / 322.3 MB, free: 2.363 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.005379, allocations: 265.9 kB / 322.6 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.005389, allocations: 4.188 kB / 322.6 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.005405, allocations: 12.38 kB / 322.6 MB, free: 2.062 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.005413, allocations: 12.12 kB / 322.6 MB, free: 2.051 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001926/0.005605, allocations: 169.8 kB / 322.8 MB, free: 1.887 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007385/0.006344, allocations: 0.8746 MB / 323.7 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.00654, allocations: 161.5 kB / 323.8 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.226e-05/0.006612, allocations: 69.69 kB / 323.9 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.006629, allocations: 7.938 kB / 323.9 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001418/0.006771, allocations: 133.1 kB / 324 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.142e-06/0.006772, allocations: 7.938 kB / 324 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003011/0.007073, allocations: 235.6 kB / 324.3 MB, free: 312 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.007112, allocations: 85.09 kB / 324.3 MB, free: 208 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.00722, allocations: 145.7 kB / 324.5 MB, free: 52 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.00724, allocations: 37.69 kB / 324.5 MB, free: 8 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.792e-05/0.007318, allocations: 144.7 kB / 324.7 MB, free: 15.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.393e-05/0.007352, allocations: 63.52 kB / 324.7 MB, free: 15.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.537e-05/0.007417, allocations: 85.61 kB / 324.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.496e-05/0.007492, allocations: 326.8 kB / 325.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.736e-05/0.00757, allocations: 64.09 kB / 325.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.007676, allocations: 152.1 kB / 325.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.007841, allocations: 184.4 kB / 325.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.007844, allocations: 3.938 kB / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002374/0.008081, allocations: 269.2 kB / 325.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.008095, allocations: 8 kB / 325.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.0081, allocations: 0 / 325.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.008112, allocations: 4 kB / 325.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.265e-05/0.008205, allocations: 39.91 kB / 325.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.008211, allocations: 4 kB / 325.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.036e-05/0.008271, allocations: 24.17 kB / 325.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.988e-05/0.008291, allocations: 12 kB / 325.9 MB, free: 14.56 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 0.0001031/0.008394, allocations: 161.6 kB / 326 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.419e-05/0.008408, allocations: 15.91 kB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002256/0.008634, allocations: 211 kB / 326.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.008636, allocations: 0 / 326.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.00864, allocations: 0 / 326.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.008644, allocations: 4 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004954/0.009139, allocations: 0.5472 MB / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.009141, allocations: 4 kB / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.228e-05/0.009183, allocations: 19.94 kB / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.009187, allocations: 3.984 kB / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.009197, allocations: 7.984 kB / 326.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.009199, allocations: 0 / 326.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.009201, allocations: 3.938 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002409/0.009442, allocations: 288.2 kB / 327.1 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.194e-05/0.009454, allocations: 11.91 kB / 327.1 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.009473, allocations: 8 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.005e-05/0.009523, allocations: 11.98 kB / 327.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.978e-05/0.009583, allocations: 23.91 kB / 327.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.009593, allocations: 8 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.13e-05/0.009634, allocations: 98.14 kB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009634, allocations: 3.938 kB / 327.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002158/0.00985, allocations: 63.75 kB / 327.4 MB, free: 13 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: 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.0005726/0.01042, allocations: 0.8306 MB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002658/0.01069, allocations: 176.2 kB / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01069, allocations: 0 / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.812e-05/0.01078, allocations: 79.92 kB / 328.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002107/0.01099, allocations: 30.88 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.01261, allocations: 2.079 MB / 330.5 MB, free: 9.637 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.011e-05/0.0127, allocations: 133.3 kB / 330.7 MB, free: 9.484 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.053e-05/0.01277, allocations: 17.95 kB / 330.7 MB, free: 9.465 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.181e-05/0.01286, allocations: 68.47 kB / 330.8 MB, free: 9.398 MB / 298.7 MB Notification: Performance of SimCode: time 6.32e-07/0.01286, allocations: 0 / 330.8 MB, free: 9.398 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01575/0.02861, allocations: 4.496 MB / 335.3 MB, free: 5.043 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.869/6.898, allocations: 0 / 335.3 MB, free: 5.043 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/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: 8.615269556641579]