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.001199/0.001199, allocations: 76.06 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.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.0008097/0.0008097, allocations: 149.1 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.9182/0.9182, allocations: 173.4 MB / 200.4 MB, free: 9.422 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_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 2.895e-06/2.895e-06, allocations: 4 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.998e-05/2.287e-05, allocations: 2.281 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002318/0.002341, allocations: 1.637 MB / 320 MB, free: 4.723 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007057/0.003047, allocations: 283.2 kB / 320.3 MB, free: 4.445 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.003163, allocations: 7.938 kB / 320.3 MB, free: 4.438 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.003303, allocations: 31.67 kB / 320.4 MB, free: 4.406 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.657e-05/0.003339, allocations: 19.75 kB / 320.4 MB, free: 4.387 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004354/0.003775, allocations: 131.7 kB / 320.5 MB, free: 4.258 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002758/0.00405, allocations: 271.5 kB / 320.8 MB, free: 3.992 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002776/0.004328, allocations: 159.5 kB / 320.9 MB, free: 3.832 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.00445, allocations: 135.8 kB / 321.1 MB, free: 3.699 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.004552, allocations: 71.77 kB / 321.1 MB, free: 3.629 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.226e-05/0.004585, allocations: 24 kB / 321.2 MB, free: 3.605 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.064e-05/0.004655, allocations: 39.98 kB / 321.2 MB, free: 3.566 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.03e-05/0.004705, allocations: 55.81 kB / 321.2 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.255e-05/0.004768, allocations: 75.8 kB / 321.3 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002925/0.00506, allocations: 267 kB / 321.6 MB, free: 3.176 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.005064, allocations: 0 / 321.6 MB, free: 3.176 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.005067, allocations: 0 / 321.6 MB, free: 3.176 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.802e-06/0.005073, allocations: 0 / 321.6 MB, free: 3.176 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.0005933/0.005667, allocations: 424.5 kB / 322 MB, free: 2.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.005718, allocations: 12.86 kB / 322 MB, free: 2.719 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.735e-05/0.005775, allocations: 62.73 kB / 322.1 MB, free: 2.648 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.696e-05/0.005832, allocations: 32.78 kB / 322.1 MB, free: 2.617 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003088/0.006141, allocations: 177.4 kB / 322.3 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.817e-05/0.006179, allocations: 24.88 kB / 322.3 MB, free: 2.395 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.868e-05/0.006208, allocations: 28.38 kB / 322.3 MB, free: 2.367 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/0.006556, allocations: 269.9 kB / 322.6 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.006566, allocations: 8.062 kB / 322.6 MB, free: 2.07 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.006585, allocations: 12.38 kB / 322.6 MB, free: 2.059 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.006594, allocations: 12.12 kB / 322.6 MB, free: 2.047 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.006796, allocations: 165.8 kB / 322.8 MB, free: 1.887 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008808/0.007676, allocations: 0.8784 MB / 323.7 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002348/0.007911, allocations: 157.4 kB / 323.8 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.125e-05/0.007993, allocations: 76.69 kB / 323.9 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.008013, allocations: 7.938 kB / 323.9 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001708/0.008184, allocations: 129.1 kB / 324 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.454e-06/0.008187, allocations: 0 / 324 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003417/0.008528, allocations: 236 kB / 324.3 MB, free: 320 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.008578, allocations: 81.11 kB / 324.3 MB, free: 220 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.571e-05/0.008674, allocations: 168.9 kB / 324.5 MB, free: 44 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.906e-05/0.008713, allocations: 45.89 kB / 324.5 MB, free: 15.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.789e-05/0.00878, allocations: 132.8 kB / 324.7 MB, free: 15.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.731e-05/0.008818, allocations: 67.47 kB / 324.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.216e-05/0.0089, allocations: 81.67 kB / 324.8 MB, free: 15.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.412e-05/0.008984, allocations: 330.8 kB / 325.1 MB, free: 15.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.006e-05/0.009064, allocations: 59.97 kB / 325.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.009174, allocations: 148.1 kB / 325.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.009349, allocations: 184.5 kB / 325.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.009354, allocations: 7.938 kB / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000256/0.00961, allocations: 261.5 kB / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.009626, allocations: 8.031 kB / 325.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.009633, allocations: 4 kB / 325.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.009647, allocations: 4 kB / 325.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.009753, allocations: 43.84 kB / 325.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.009761, allocations: 4 kB / 325.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.126e-05/0.009832, allocations: 27.78 kB / 325.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.009858, allocations: 11.94 kB / 325.9 MB, free: 14.55 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.000123/0.009981, allocations: 165.6 kB / 326 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.903e-05/0.01, allocations: 15.91 kB / 326.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002498/0.01025, allocations: 207 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.01025, allocations: 4 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.01026, allocations: 0 / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.01026, allocations: 0 / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004993/0.01076, allocations: 0.5551 MB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.01077, allocations: 0 / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.819e-05/0.01081, allocations: 15.94 kB / 326.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.818e-06/0.01082, allocations: 3.984 kB / 326.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.01083, allocations: 11.98 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.01083, allocations: 0 / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.01084, allocations: 7.938 kB / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002069/0.01104, allocations: 280.2 kB / 327.1 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.504e-05/0.01106, allocations: 15.84 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.01108, allocations: 8 kB / 327.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.97e-05/0.01113, allocations: 11.98 kB / 327.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.15e-05/0.01119, allocations: 23.91 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.0112, allocations: 7.938 kB / 327.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.796e-05/0.01124, allocations: 95.27 kB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01124, allocations: 0 / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002217/0.01146, allocations: 59.83 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,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.0004519/0.01191, allocations: 0.8307 MB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002399/0.01215, allocations: 175.7 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.01215, allocations: 0 / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.15e-05/0.01223, allocations: 71.86 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.0002179/0.01245, allocations: 31.91 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.001625/0.01408, allocations: 2.095 MB / 330.6 MB, free: 9.621 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.194e-05/0.01417, allocations: 121.3 kB / 330.7 MB, free: 9.48 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.607e-05/0.01424, allocations: 29.94 kB / 330.7 MB, free: 9.449 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.564e-05/0.01432, allocations: 64.47 kB / 330.8 MB, free: 9.387 MB / 298.7 MB Notification: Performance of SimCode: time 1.032e-06/0.01432, allocations: 3.938 kB / 330.8 MB, free: 9.383 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01933/0.03365, allocations: 4.53 MB / 335.3 MB, free: 4.996 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.921/6.954, allocations: 10.94 kB / 335.3 MB, free: 4.988 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/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: 8.694918157532811]