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.0008647/0.0008647, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.0009649/0.0009649, allocations: 149.4 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.8886/0.8886, allocations: 173.3 MB / 200.4 MB, free: 9.43 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,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 1.523e-06/1.523e-06, allocations: 0 / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.034e-05/2.186e-05, allocations: 2.281 kB / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001938/0.00196, allocations: 1.444 MB / 319.9 MB, free: 4.93 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005177/0.002478, allocations: 291.1 kB / 320.1 MB, free: 4.645 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.764e-05/0.002556, allocations: 3.938 kB / 320.1 MB, free: 4.641 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.002672, allocations: 19.75 kB / 320.2 MB, free: 4.621 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.729e-05/0.002709, allocations: 27.78 kB / 320.2 MB, free: 4.594 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00035/0.003059, allocations: 119.7 kB / 320.3 MB, free: 4.477 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002296/0.003289, allocations: 263.5 kB / 320.6 MB, free: 4.219 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000204/0.003493, allocations: 142.6 kB / 320.7 MB, free: 4.07 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001047/0.003597, allocations: 131.8 kB / 320.8 MB, free: 3.941 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002487/0.003846, allocations: 71.81 kB / 320.9 MB, free: 3.871 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.003874, allocations: 24 kB / 320.9 MB, free: 3.848 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.302e-05/0.003937, allocations: 24 kB / 320.9 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.707e-05/0.003984, allocations: 59.81 kB / 321 MB, free: 3.766 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.854e-05/0.004043, allocations: 67.81 kB / 321.1 MB, free: 3.699 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002329/0.004275, allocations: 247.2 kB / 321.3 MB, free: 3.457 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.004278, allocations: 0 / 321.3 MB, free: 3.457 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.004279, allocations: 0 / 321.3 MB, free: 3.457 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.004284, allocations: 0 / 321.3 MB, free: 3.457 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0004645/0.004748, allocations: 421 kB / 321.7 MB, free: 3.016 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.004784, allocations: 12.92 kB / 321.7 MB, free: 3.004 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.481e-05/0.004829, allocations: 54.73 kB / 321.8 MB, free: 2.941 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.963e-05/0.004868, allocations: 16.84 kB / 321.8 MB, free: 2.926 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002085/0.005077, allocations: 177.4 kB / 322 MB, free: 2.727 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.005103, allocations: 20.88 kB / 322 MB, free: 2.707 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.506e-05/0.005128, allocations: 24.38 kB / 322 MB, free: 2.684 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002808/0.005409, allocations: 243.3 kB / 322.3 MB, free: 2.434 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.005418, allocations: 192 / 322.3 MB, free: 2.434 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.005435, allocations: 12.38 kB / 322.3 MB, free: 2.422 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.005443, allocations: 12.12 kB / 322.3 MB, free: 2.41 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.005645, allocations: 153.9 kB / 322.4 MB, free: 2.258 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006538/0.006299, allocations: 0.6163 MB / 323 MB, free: 1.598 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.006499, allocations: 150.8 kB / 323.2 MB, free: 1.441 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.503e-05/0.006584, allocations: 76.86 kB / 323.3 MB, free: 1.363 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.006601, allocations: 0 / 323.3 MB, free: 1.363 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001391/0.00674, allocations: 119.3 kB / 323.4 MB, free: 1.234 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.102e-06/0.006742, allocations: 0 / 323.4 MB, free: 1.234 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002995/0.007041, allocations: 224.2 kB / 323.6 MB, free: 1.012 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.51e-05/0.007076, allocations: 63.27 kB / 323.7 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.331e-05/0.00716, allocations: 153.8 kB / 323.8 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.00718, allocations: 41.64 kB / 323.9 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.292e-05/0.007243, allocations: 132.8 kB / 324 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.564e-05/0.007279, allocations: 63.48 kB / 324.1 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.716e-05/0.007346, allocations: 74 kB / 324.1 MB, free: 460 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.465e-05/0.007441, allocations: 326.8 kB / 324.4 MB, free: 124 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.007542, allocations: 64.62 kB / 324.5 MB, free: 60 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.007658, allocations: 128.1 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.007828, allocations: 170.7 kB / 324.8 MB, free: 15.72 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.00783, allocations: 4 kB / 324.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002365/0.008067, allocations: 245.3 kB / 325 MB, free: 15.47 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.008083, allocations: 12.16 kB / 325.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.008088, allocations: 4 kB / 325.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.008102, allocations: 7.984 kB / 325.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.763e-05/0.00819, allocations: 31.92 kB / 325.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.008196, allocations: 4 kB / 325.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.909e-05/0.008255, allocations: 27.78 kB / 325.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.008275, allocations: 12 kB / 325.1 MB, free: 15.37 MB / 298.7 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 9.533e-05/0.008371, allocations: 149.8 kB / 325.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.316e-05/0.008384, allocations: 15.89 kB / 325.3 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002966/0.00868, allocations: 218.9 kB / 325.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.008683, allocations: 8 kB / 325.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.008687, allocations: 0 / 325.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.008691, allocations: 0 / 325.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004545/0.009146, allocations: 0.5129 MB / 326 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.009149, allocations: 3.984 kB / 326 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.308e-05/0.009192, allocations: 16 kB / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.009194, allocations: 0 / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.009205, allocations: 4 kB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.009209, allocations: 7.984 kB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.00921, allocations: 0 / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001903/0.0094, allocations: 287.2 kB / 326.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.698e-05/0.009417, allocations: 19.83 kB / 326.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.009438, allocations: 4 kB / 326.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.145e-05/0.00953, allocations: 7.984 kB / 326.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.607e-05/0.009596, allocations: 23.95 kB / 326.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.009611, allocations: 12 kB / 326.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.091e-05/0.009662, allocations: 98.08 kB / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.009662, allocations: 0 / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002087/0.009871, allocations: 55.83 kB / 326.6 MB, free: 13.86 MB / 298.7 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.0003889/0.01026, allocations: 0.83 MB / 327.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002154/0.01047, allocations: 167.8 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.01048, allocations: 0 / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.119e-05/0.01056, allocations: 79.84 kB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001966/0.01075, allocations: 34.34 kB / 327.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001394/0.01215, allocations: 2.009 MB / 329.7 MB, free: 10.6 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.664e-05/0.01222, allocations: 128.5 kB / 329.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.532e-05/0.01228, allocations: 29.94 kB / 329.8 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.444e-05/0.01236, allocations: 64.47 kB / 329.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of SimCode: time 7.61e-07/0.01237, allocations: 0 / 329.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01586/0.02822, allocations: 4.45 MB / 334.3 MB, free: 6.047 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.897/6.925, allocations: 7.125 kB / 334.4 MB, free: 6.043 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/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: 8.749376839958131]