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.001656/0.001656, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001851/0.001851, allocations: 194.6 kB / 23.71 MB, free: 4.406 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.387/1.387, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.001561/0.001561, allocations: 47.92 kB / 370.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2638, allocations: 52.18 MB / 422.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002745/0.2666, allocations: 1.474 MB / 424 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006605/0.2672, allocations: 279.2 kB / 424.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.197e-05/0.2673, allocations: 4 kB / 424.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.2674, allocations: 23.69 kB / 424.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.154e-05/0.2675, allocations: 15.86 kB / 424.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004024/0.2679, allocations: 119.8 kB / 424.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000328/0.2682, allocations: 263.5 kB / 424.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002695/0.2685, allocations: 138.7 kB / 424.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.2686, allocations: 91.69 kB / 424.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.2687, allocations: 75.61 kB / 425 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.849e-05/0.2688, allocations: 24 kB / 425 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.16e-05/0.2688, allocations: 31.98 kB / 425.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.064e-05/0.2689, allocations: 59.83 kB / 425.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.099e-05/0.269, allocations: 71.66 kB / 425.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003134/0.2693, allocations: 248.7 kB / 425.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.2693, allocations: 0 / 425.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2693, allocations: 7.938 kB / 425.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.2693, allocations: 0 / 425.4 MB, free: 11.46 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.0006731/0.27, allocations: 421 kB / 425.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.2701, allocations: 8.031 kB / 425.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.603e-05/0.2701, allocations: 54.73 kB / 425.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.679e-05/0.2702, allocations: 28.73 kB / 425.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.2705, allocations: 166.3 kB / 426.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.957e-05/0.2705, allocations: 32.84 kB / 426.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.25e-05/0.2706, allocations: 24.38 kB / 426.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004286/0.271, allocations: 247.1 kB / 426.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.271, allocations: 3.938 kB / 426.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.289e-05/0.271, allocations: 8 kB / 426.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.271, allocations: 8 kB / 426.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002957/0.2713, allocations: 153.7 kB / 426.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009755/0.2723, allocations: 0.6121 MB / 427.2 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000301/0.2726, allocations: 154.8 kB / 427.3 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.2727, allocations: 64.83 kB / 427.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.2727, allocations: 7.938 kB / 427.4 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002041/0.2729, allocations: 130.7 kB / 427.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.2729, allocations: 0 / 427.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000428/0.2734, allocations: 217.4 kB / 427.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.2734, allocations: 55.41 kB / 427.8 MB, free: 8.941 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.2735, allocations: 149.9 kB / 427.9 MB, free: 8.785 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/0.2736, allocations: 37.69 kB / 428 MB, free: 8.742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.992e-05/0.2737, allocations: 132.8 kB / 428.1 MB, free: 8.605 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.047e-05/0.2737, allocations: 67.47 kB / 428.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.2739, allocations: 78 kB / 428.2 MB, free: 8.453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.274, allocations: 322.8 kB / 428.6 MB, free: 8.129 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.2741, allocations: 60.62 kB / 428.6 MB, free: 8.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.2743, allocations: 140 kB / 428.8 MB, free: 7.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/0.2745, allocations: 166.8 kB / 428.9 MB, free: 7.723 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2745, allocations: 0 / 428.9 MB, free: 7.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000378/0.2749, allocations: 253.8 kB / 429.2 MB, free: 7.469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.2749, allocations: 4 kB / 429.2 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2749, allocations: 4 kB / 429.2 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.275, allocations: 7.984 kB / 429.2 MB, free: 7.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.2751, allocations: 27.92 kB / 429.2 MB, free: 7.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.2751, allocations: 3.938 kB / 429.2 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.767e-05/0.2752, allocations: 27.84 kB / 429.2 MB, free: 7.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.96e-05/0.2752, allocations: 16 kB / 429.3 MB, free: 7.379 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.000162/0.2754, allocations: 165.9 kB / 429.4 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.2754, allocations: 11.95 kB / 429.4 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003581/0.2758, allocations: 194.5 kB / 429.6 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.2758, allocations: 4 kB / 429.6 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2758, allocations: 0 / 429.6 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2758, allocations: 0 / 429.6 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007349/0.2765, allocations: 0.5245 MB / 430.2 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.2765, allocations: 3.938 kB / 430.2 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.742e-05/0.2766, allocations: 23.88 kB / 430.2 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.2766, allocations: 8 kB / 430.2 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.2766, allocations: 7.984 kB / 430.2 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.2766, allocations: 0 / 430.2 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.2766, allocations: 3.938 kB / 430.2 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000336/0.277, allocations: 283.6 kB / 430.5 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.606e-05/0.277, allocations: 27.83 kB / 430.5 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.277, allocations: 0 / 430.5 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.879e-05/0.2771, allocations: 8 kB / 430.5 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.577e-05/0.2772, allocations: 27.89 kB / 430.5 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.2772, allocations: 8 kB / 430.5 MB, free: 6.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.759e-05/0.2773, allocations: 97.39 kB / 430.6 MB, free: 5.914 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2773, allocations: 4 kB / 430.6 MB, free: 5.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002854/0.2775, allocations: 51.89 kB / 430.7 MB, free: 5.859 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.0006688/0.2782, allocations: 0.8138 MB / 431.5 MB, free: 5.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003148/0.2785, allocations: 167.8 kB / 431.7 MB, free: 4.855 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2785, allocations: 0 / 431.7 MB, free: 4.855 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001345/0.2787, allocations: 76.28 kB / 431.7 MB, free: 4.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.2789, allocations: 28.36 kB / 431.8 MB, free: 4.754 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.2812, allocations: 2.019 MB / 433.8 MB, free: 2.613 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001211/0.2813, allocations: 124.6 kB / 433.9 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.329e-05/0.2814, allocations: 21.95 kB / 433.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.2815, allocations: 63.41 kB / 434 MB, free: 2.387 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2815, allocations: 0 / 434 MB, free: 2.387 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02777/0.3092, allocations: 4.33 MB / 438.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/10.65, allocations: 15.44 kB / 438.3 MB, free: 14.19 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: 12.964969629887491]