Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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.001202/0.001202, allocations: 112 kB / 20.43 MB, free: 1.457 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.001477/0.001477, allocations: 181.3 kB / 23.72 MB, free: 4.699 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.377/1.377, allocations: 225.6 MB / 252.5 MB, free: 13.04 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,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 51.92 kB / 370.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2717, allocations: 52.19 MB / 422.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003186/0.2749, allocations: 1.505 MB / 424.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007907/0.2757, allocations: 267.2 kB / 424.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.2758, allocations: 4 kB / 424.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001609/0.276, allocations: 35.67 kB / 424.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.867e-05/0.276, allocations: 15.8 kB / 424.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005076/0.2765, allocations: 115.8 kB / 424.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004948/0.277, allocations: 271.5 kB / 424.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004869/0.2775, allocations: 138.6 kB / 424.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.2776, allocations: 83.78 kB / 425 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001826/0.2778, allocations: 99.58 kB / 425.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.925e-05/0.2779, allocations: 28 kB / 425.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.088e-05/0.278, allocations: 31.94 kB / 425.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.111e-05/0.278, allocations: 59.81 kB / 425.2 MB, free: 12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001411/0.2782, allocations: 91.53 kB / 425.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003668/0.2785, allocations: 247.3 kB / 425.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2785, allocations: 0 / 425.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2785, allocations: 4 kB / 425.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.2786, allocations: 0 / 425.6 MB, free: 11.67 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.0007147/0.2793, allocations: 409.1 kB / 426 MB, free: 11.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.2793, allocations: 12.03 kB / 426 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.85e-05/0.2794, allocations: 58.72 kB / 426 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.307e-05/0.2794, allocations: 24.8 kB / 426.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003202/0.2798, allocations: 170.2 kB / 426.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.082e-05/0.2798, allocations: 20.88 kB / 426.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.838e-05/0.2798, allocations: 24.38 kB / 426.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004868/0.2803, allocations: 251.1 kB / 426.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.2803, allocations: 3.938 kB / 426.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.573e-05/0.2804, allocations: 15.98 kB / 426.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.2804, allocations: 8 kB / 426.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003455/0.2807, allocations: 153.7 kB / 426.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.2819, allocations: 0.6588 MB / 427.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003839/0.2823, allocations: 162.7 kB / 427.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.2824, allocations: 72.83 kB / 427.6 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.536e-05/0.2824, allocations: 3.938 kB / 427.6 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.2827, allocations: 114.8 kB / 427.7 MB, free: 9.391 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.2827, allocations: 0 / 427.7 MB, free: 9.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004736/0.2831, allocations: 217.4 kB / 427.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.57e-05/0.2832, allocations: 63.34 kB / 428 MB, free: 9.098 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.2833, allocations: 153.7 kB / 428.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.742e-05/0.2834, allocations: 33.7 kB / 428.2 MB, free: 8.902 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.2835, allocations: 136.8 kB / 428.3 MB, free: 8.762 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.459e-05/0.2836, allocations: 59.56 kB / 428.3 MB, free: 8.703 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.2837, allocations: 81.97 kB / 428.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.2839, allocations: 322.8 kB / 428.7 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.284, allocations: 60.62 kB / 428.8 MB, free: 8.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.2842, allocations: 136.1 kB / 428.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.2845, allocations: 171.3 kB / 429.1 MB, free: 7.883 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2845, allocations: 0 / 429.1 MB, free: 7.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004583/0.285, allocations: 249.3 kB / 429.3 MB, free: 7.633 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.285, allocations: 8.156 kB / 429.4 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.285, allocations: 8 kB / 429.4 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.285, allocations: 4 kB / 429.4 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.2852, allocations: 27.92 kB / 429.4 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.2852, allocations: 0 / 429.4 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.2853, allocations: 35.75 kB / 429.4 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.2854, allocations: 12 kB / 429.4 MB, free: 7.539 MB / 334.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.0001656/0.2855, allocations: 161.7 kB / 429.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.029e-05/0.2856, allocations: 19.91 kB / 429.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003692/0.2859, allocations: 194.4 kB / 429.8 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.2859, allocations: 4 kB / 429.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2859, allocations: 0 / 429.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.505e-06/0.2859, allocations: 3.984 kB / 429.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007528/0.2867, allocations: 0.5323 MB / 430.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2867, allocations: 0 / 430.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.471e-05/0.2868, allocations: 15.98 kB / 430.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.2868, allocations: 4 kB / 430.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.2868, allocations: 8 kB / 430.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.2868, allocations: 0 / 430.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.2868, allocations: 7.938 kB / 430.4 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003346/0.2871, allocations: 287.6 kB / 430.7 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.871e-05/0.2872, allocations: 11.89 kB / 430.7 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.633e-05/0.2872, allocations: 8 kB / 430.7 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.481e-05/0.2873, allocations: 7.984 kB / 430.7 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.072e-05/0.2873, allocations: 31.83 kB / 430.7 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.2873, allocations: 12 kB / 430.7 MB, free: 6.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.409e-05/0.2874, allocations: 95.27 kB / 430.8 MB, free: 6.066 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2874, allocations: 0 / 430.8 MB, free: 6.066 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003014/0.2877, allocations: 47.89 kB / 430.9 MB, free: 6.02 MB / 334.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: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.0008871/0.2886, allocations: 0.8138 MB / 431.7 MB, free: 5.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003561/0.289, allocations: 167.8 kB / 431.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.289, allocations: 0 / 431.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.2891, allocations: 83.78 kB / 431.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.2894, allocations: 31.2 kB / 432 MB, free: 4.906 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002861/0.2923, allocations: 2.012 MB / 434 MB, free: 2.773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005609/0.2928, allocations: 0.7362 MB / 434.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.614e-05/0.2929, allocations: 25.94 kB / 434.7 MB, free: 1.988 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.2931, allocations: 59.41 kB / 434.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2931, allocations: 3.938 kB / 434.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03189/0.325, allocations: 3.936 MB / 438.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/10.92, allocations: 11.94 kB / 438.7 MB, free: 14.11 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 13.25186837813817]