Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.001686/0.001686, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.002122/0.002122, allocations: 207.6 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.401/1.401, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 51.92 kB / 377.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2773, allocations: 53.36 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003068/0.2803, allocations: 1.471 MB / 432.5 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007899/0.2811, allocations: 283.2 kB / 432.8 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001317/0.2812, allocations: 7.938 kB / 432.8 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.2814, allocations: 27.73 kB / 432.8 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.894e-05/0.2815, allocations: 15.81 kB / 432.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004845/0.2819, allocations: 123.8 kB / 433 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004083/0.2823, allocations: 263.5 kB / 433.2 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003139/0.2827, allocations: 138.6 kB / 433.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.2828, allocations: 83.77 kB / 433.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.283, allocations: 95.59 kB / 433.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.84e-05/0.283, allocations: 27.94 kB / 433.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.661e-05/0.2831, allocations: 35.94 kB / 433.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.733e-05/0.2832, allocations: 47.89 kB / 433.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.2833, allocations: 83.58 kB / 433.7 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003392/0.2836, allocations: 248.7 kB / 434 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2836, allocations: 0 / 434 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2836, allocations: 0 / 434 MB, free: 3.703 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.2836, allocations: 0 / 434 MB, free: 3.703 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007103/0.2843, allocations: 407.8 kB / 434.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.2844, allocations: 12.03 kB / 434.4 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.349e-05/0.2844, allocations: 66.66 kB / 434.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002675/0.2847, allocations: 32.83 kB / 434.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003419/0.2851, allocations: 170.2 kB / 434.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.2851, allocations: 20.88 kB / 434.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.254e-05/0.2851, allocations: 24.38 kB / 434.7 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004128/0.2855, allocations: 235.2 kB / 434.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.2856, allocations: 3.938 kB / 434.9 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.2856, allocations: 8 kB / 434.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.728e-05/0.2856, allocations: 7.984 kB / 434.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000282/0.2859, allocations: 161.6 kB / 435.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009288/0.2868, allocations: 0.616 MB / 435.7 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002951/0.2871, allocations: 150.8 kB / 435.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.2872, allocations: 64.83 kB / 435.9 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.552e-05/0.2872, allocations: 7.938 kB / 435.9 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002055/0.2874, allocations: 117 kB / 436.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.2874, allocations: 0 / 436.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000426/0.2879, allocations: 225 kB / 436.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/0.2879, allocations: 59.39 kB / 436.3 MB, free: 1.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.2881, allocations: 146 kB / 436.5 MB, free: 1.043 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.881e-05/0.2881, allocations: 45.62 kB / 436.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.543e-05/0.2882, allocations: 132.8 kB / 436.6 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.536e-05/0.2883, allocations: 63.48 kB / 436.7 MB, free: 0.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.895e-05/0.2884, allocations: 74.02 kB / 436.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.2885, allocations: 326.8 kB / 437.1 MB, free: 392 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.2886, allocations: 60.62 kB / 437.2 MB, free: 332 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.2888, allocations: 132 kB / 437.3 MB, free: 176 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/0.289, allocations: 179.2 kB / 437.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.289, allocations: 0 / 437.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003652/0.2894, allocations: 241.3 kB / 437.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.2894, allocations: 8 kB / 437.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2894, allocations: 0 / 437.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.2894, allocations: 4 kB / 437.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.2896, allocations: 36.14 kB / 437.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.2896, allocations: 8 kB / 437.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.882e-05/0.2897, allocations: 27.83 kB / 437.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.089e-05/0.2897, allocations: 12 kB / 437.8 MB, free: 15.63 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001398/0.2898, allocations: 149.7 kB / 437.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.8e-05/0.2899, allocations: 19.89 kB / 438 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.063e-05/0.2899, allocations: 20.88 kB / 438 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2899, allocations: 4 kB / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.2899, allocations: 3.938 kB / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.2899, allocations: 0 / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006887/0.2906, allocations: 0.5093 MB / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2906, allocations: 0 / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.403e-05/0.2907, allocations: 12 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.2907, allocations: 0 / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.682e-05/0.2907, allocations: 11.98 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2907, allocations: 0 / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2907, allocations: 0 / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003224/0.291, allocations: 275.8 kB / 438.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.891e-05/0.291, allocations: 15.84 kB / 438.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.665e-05/0.2911, allocations: 7.984 kB / 438.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.273e-05/0.2912, allocations: 8 kB / 438.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.371e-05/0.2912, allocations: 27.89 kB / 438.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.2912, allocations: 12 kB / 438.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.046e-05/0.2913, allocations: 94.89 kB / 439 MB, free: 14.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2913, allocations: 0 / 439 MB, free: 14.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002831/0.2916, allocations: 47.89 kB / 439 MB, free: 14.36 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0007013/0.2923, allocations: 0.8009 MB / 439.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00031/0.2926, allocations: 164.1 kB / 440 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.2926, allocations: 0 / 440 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001327/0.2927, allocations: 79.7 kB / 440 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.293, allocations: 23.92 kB / 440.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.2952, allocations: 1.989 MB / 442.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001224/0.2953, allocations: 116.6 kB / 442.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.331e-05/0.2954, allocations: 21.94 kB / 442.2 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.2955, allocations: 55.42 kB / 442.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of SimCode: time 7.12e-07/0.2955, allocations: 0 / 442.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03041/0.3259, allocations: 4.114 MB / 446.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.59, allocations: 11.8 kB / 446.4 MB, free: 6.965 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.960284392000176]