Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008232/0.0008232, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009207/0.0009207, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9151/0.9151, allocations: 177 MB / 204.1 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.678e-05/1.852e-05, allocations: 2.281 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002748/0.002767, allocations: 1.484 MB / 326 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005981/0.003365, allocations: 287.1 kB / 326.2 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.527e-05/0.00345, allocations: 7.938 kB / 326.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000172/0.003622, allocations: 23.75 kB / 326.3 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.806e-05/0.00366, allocations: 19.78 kB / 326.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000381/0.004041, allocations: 119.7 kB / 326.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002422/0.004283, allocations: 267.5 kB / 326.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.004505, allocations: 134.7 kB / 326.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.004628, allocations: 131.8 kB / 326.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.488e-05/0.004722, allocations: 67.83 kB / 327 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.9e-05/0.004751, allocations: 20 kB / 327 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.403e-05/0.004805, allocations: 31.92 kB / 327 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.957e-05/0.004855, allocations: 51.89 kB / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.204e-05/0.004917, allocations: 67.81 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002491/0.005166, allocations: 251.2 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.005169, allocations: 0 / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.005171, allocations: 0 / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.005175, allocations: 3.938 kB / 327.4 MB, free: 12.95 MB / 298.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.0005457/0.005721, allocations: 417 kB / 327.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.005763, allocations: 11.98 kB / 327.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.92e-05/0.005812, allocations: 54.73 kB / 327.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001635/0.005976, allocations: 32.83 kB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.006238, allocations: 169.5 kB / 328.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.00627, allocations: 20.88 kB / 328.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.567e-05/0.006296, allocations: 32.36 kB / 328.1 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003098/0.006606, allocations: 235.3 kB / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.006615, allocations: 192 / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.006633, allocations: 16.36 kB / 328.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.006642, allocations: 8.125 kB / 328.4 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002097/0.006852, allocations: 153.9 kB / 328.5 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007365/0.007588, allocations: 0.6046 MB / 329.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002209/0.007809, allocations: 161.5 kB / 329.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.954e-05/0.007889, allocations: 68.88 kB / 329.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.007907, allocations: 4 kB / 329.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001477/0.008054, allocations: 119.9 kB / 329.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.844e-06/0.008056, allocations: 3.938 kB / 329.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003285/0.008385, allocations: 221.3 kB / 329.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.008436, allocations: 59.39 kB / 329.8 MB, free: 10.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.344e-05/0.008529, allocations: 148.8 kB / 329.9 MB, free: 10.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.79e-05/0.008577, allocations: 37.69 kB / 329.9 MB, free: 10.24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.389e-05/0.008661, allocations: 132.8 kB / 330.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.489e-05/0.008706, allocations: 63.53 kB / 330.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.266e-05/0.008788, allocations: 74.02 kB / 330.2 MB, free: 9.957 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.042e-05/0.008879, allocations: 322.8 kB / 330.5 MB, free: 9.633 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.221e-05/0.008971, allocations: 68.62 kB / 330.6 MB, free: 9.566 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.00908, allocations: 132 kB / 330.7 MB, free: 9.414 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001774/0.009258, allocations: 170.8 kB / 330.9 MB, free: 9.223 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.009261, allocations: 4 kB / 330.9 MB, free: 9.219 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002862/0.009547, allocations: 241.3 kB / 331.1 MB, free: 8.977 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.009566, allocations: 7.938 kB / 331.1 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.009573, allocations: 4 kB / 331.1 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.00959, allocations: 4 kB / 331.1 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.009691, allocations: 27.92 kB / 331.2 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.009698, allocations: 4.156 kB / 331.2 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.476e-05/0.009763, allocations: 39.77 kB / 331.2 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.009777, allocations: 15.98 kB / 331.2 MB, free: 8.875 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 0.0001146/0.009892, allocations: 153.8 kB / 331.4 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.517e-05/0.009907, allocations: 19.84 kB / 331.4 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.751e-05/0.009944, allocations: 20.92 kB / 331.4 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.009948, allocations: 4 kB / 331.4 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.009954, allocations: 0 / 331.4 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.009958, allocations: 0 / 331.4 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004964/0.01045, allocations: 0.5015 MB / 331.9 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.01046, allocations: 0 / 331.9 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.156e-05/0.0105, allocations: 12 kB / 331.9 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.0105, allocations: 0 / 331.9 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.01051, allocations: 11.98 kB / 331.9 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.01052, allocations: 3.938 kB / 332 MB, free: 8.094 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.01052, allocations: 0 / 332 MB, free: 8.094 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002056/0.01072, allocations: 272.9 kB / 332.2 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.458e-05/0.01074, allocations: 15.84 kB / 332.2 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.01076, allocations: 11.92 kB / 332.2 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.484e-05/0.01081, allocations: 4 kB / 332.3 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.948e-05/0.01086, allocations: 27.91 kB / 332.3 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.01088, allocations: 11.98 kB / 332.3 MB, free: 7.742 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.208e-05/0.01092, allocations: 95.27 kB / 332.4 MB, free: 7.648 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01092, allocations: 0 / 332.4 MB, free: 7.648 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002128/0.01113, allocations: 47.89 kB / 332.4 MB, free: 7.602 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: 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.0004632/0.01159, allocations: 0.806 MB / 333.2 MB, free: 6.766 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000257/0.01185, allocations: 160.1 kB / 333.4 MB, free: 6.609 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.01185, allocations: 64 / 333.4 MB, free: 6.609 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.18e-05/0.01193, allocations: 79.84 kB / 333.5 MB, free: 6.531 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.01215, allocations: 23.98 kB / 333.5 MB, free: 6.508 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.01367, allocations: 2.003 MB / 335.5 MB, free: 4.383 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.51e-05/0.01376, allocations: 124.5 kB / 335.6 MB, free: 4.238 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.519e-05/0.01381, allocations: 25.92 kB / 335.6 MB, free: 4.215 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.333e-05/0.0139, allocations: 56.48 kB / 335.7 MB, free: 4.16 MB / 298.7 MB Notification: Performance of SimCode: time 6.41e-07/0.0139, allocations: 0 / 335.7 MB, free: 4.16 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01571/0.0296, allocations: 4.181 MB / 339.9 MB, free: 88 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.69/6.719, allocations: 4.062 kB / 339.9 MB, free: 84 kB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.53053079918027]