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.001271/0.001271, allocations: 109.5 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.001317/0.001317, allocations: 181.8 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.448/1.448, allocations: 225.6 MB / 252.5 MB, free: 13.01 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.001542/0.001542, allocations: 43.94 kB / 370.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2703, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002827/0.2731, allocations: 1.501 MB / 424.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007131/0.2738, allocations: 279.2 kB / 424.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.752e-05/0.2739, allocations: 4 kB / 424.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.2741, allocations: 23.69 kB / 424.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.902e-05/0.2741, allocations: 19.8 kB / 424.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004442/0.2746, allocations: 123.8 kB / 424.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000351/0.2749, allocations: 267.5 kB / 424.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002681/0.2752, allocations: 138.7 kB / 424.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.2753, allocations: 87.77 kB / 425 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.2754, allocations: 91.59 kB / 425.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.793e-05/0.2755, allocations: 24 kB / 425.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.124e-05/0.2755, allocations: 39.92 kB / 425.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.499e-05/0.2756, allocations: 55.84 kB / 425.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001003/0.2757, allocations: 95.52 kB / 425.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003073/0.276, allocations: 247.3 kB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.276, allocations: 0 / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.276, allocations: 4 kB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.276, allocations: 0 / 425.6 MB, free: 11.63 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.0006536/0.2767, allocations: 409 kB / 426 MB, free: 11.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.2767, allocations: 8.031 kB / 426 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.648e-05/0.2768, allocations: 58.73 kB / 426 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.744e-05/0.2768, allocations: 28.8 kB / 426.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003302/0.2772, allocations: 174.2 kB / 426.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.081e-05/0.2772, allocations: 20.88 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.375e-05/0.2773, allocations: 24.38 kB / 426.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004375/0.2777, allocations: 251.1 kB / 426.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.2777, allocations: 3.938 kB / 426.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.2777, allocations: 4 kB / 426.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.2777, allocations: 8 kB / 426.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003035/0.278, allocations: 157.7 kB / 426.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.2791, allocations: 0.6666 MB / 427.4 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002988/0.2794, allocations: 146.9 kB / 427.5 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.2795, allocations: 76.77 kB / 427.6 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.317e-05/0.2795, allocations: 3.938 kB / 427.6 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002103/0.2797, allocations: 126.8 kB / 427.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.2797, allocations: 0 / 427.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004361/0.2802, allocations: 217.4 kB / 427.9 MB, free: 9.129 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.2802, allocations: 59.39 kB / 428 MB, free: 9.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.2803, allocations: 145.9 kB / 428.1 MB, free: 8.906 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.2804, allocations: 45.69 kB / 428.2 MB, free: 8.855 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.2805, allocations: 132.8 kB / 428.3 MB, free: 8.719 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.267e-05/0.2805, allocations: 55.59 kB / 428.3 MB, free: 8.664 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.2806, allocations: 81.95 kB / 428.4 MB, free: 8.574 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.2808, allocations: 326.8 kB / 428.7 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.2809, allocations: 60.62 kB / 428.8 MB, free: 8.188 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.2811, allocations: 132.1 kB / 428.9 MB, free: 8.035 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002452/0.2813, allocations: 171.3 kB / 429.1 MB, free: 7.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2813, allocations: 0 / 429.1 MB, free: 7.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000383/0.2817, allocations: 249.3 kB / 429.3 MB, free: 7.594 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.2817, allocations: 4 kB / 429.4 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.2817, allocations: 7.938 kB / 429.4 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.2818, allocations: 4 kB / 429.4 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.2819, allocations: 40.12 kB / 429.4 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.2819, allocations: 0 / 429.4 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.732e-05/0.282, allocations: 27.77 kB / 429.4 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-05/0.282, allocations: 16 kB / 429.4 MB, free: 7.496 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.0001955/0.2822, allocations: 153.7 kB / 429.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.63e-05/0.2823, allocations: 15.91 kB / 429.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003719/0.2826, allocations: 194.4 kB / 429.8 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.2826, allocations: 4 kB / 429.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2826, allocations: 4 kB / 429.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2826, allocations: 0 / 429.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007769/0.2834, allocations: 0.5479 MB / 430.4 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2834, allocations: 0 / 430.4 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.774e-05/0.2835, allocations: 15.94 kB / 430.4 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.2835, allocations: 4 kB / 430.4 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.2835, allocations: 7.984 kB / 430.4 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.2835, allocations: 0 / 430.4 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.2835, allocations: 7.938 kB / 430.4 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003444/0.2839, allocations: 287.6 kB / 430.7 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.179e-05/0.2839, allocations: 19.88 kB / 430.7 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.2839, allocations: 4 kB / 430.7 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.555e-05/0.284, allocations: 4 kB / 430.7 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.029e-05/0.2841, allocations: 31.89 kB / 430.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.2841, allocations: 4 kB / 430.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.754e-05/0.2842, allocations: 99.27 kB / 430.8 MB, free: 6.023 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2842, allocations: 4 kB / 430.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003089/0.2845, allocations: 47.89 kB / 430.9 MB, free: 5.973 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.0006859/0.2852, allocations: 0.8177 MB / 431.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003467/0.2855, allocations: 164.2 kB / 431.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2855, allocations: 0 / 431.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.2856, allocations: 87.78 kB / 431.9 MB, free: 4.883 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.2859, allocations: 19.94 kB / 432 MB, free: 4.863 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00235/0.2883, allocations: 2.004 MB / 434 MB, free: 2.738 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.2887, allocations: 0.7401 MB / 434.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.278e-05/0.2887, allocations: 21.95 kB / 434.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.2888, allocations: 63.41 kB / 434.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of SimCode: time 5e-07/0.2888, allocations: 3.938 kB / 434.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02949/0.3183, allocations: 3.936 MB / 438.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.36, allocations: 18.09 kB / 438.7 MB, free: 14.07 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv --start-time 0 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00109737 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.csv","/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] "Error: Could not read variable transition1.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.915972886999953]