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.001606/0.001606, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.001939/0.001939, allocations: 203.5 kB / 23.72 MB, free: 4.391 MB / 14.72 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 1.414/1.414, allocations: 230.5 MB / 257.4 MB, free: 7.754 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001928/0.001928, allocations: 59.91 kB / 377.7 MB, free: 2.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2729, allocations: 53.4 MB / 431.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00276/0.2756, allocations: 1.471 MB / 432.6 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006707/0.2763, allocations: 283.2 kB / 432.9 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.2764, allocations: 3.938 kB / 432.9 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.2765, allocations: 23.75 kB / 432.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.953e-05/0.2766, allocations: 19.8 kB / 432.9 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003827/0.277, allocations: 115.8 kB / 433 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000329/0.2773, allocations: 263.5 kB / 433.3 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000272/0.2776, allocations: 138.6 kB / 433.4 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.2777, allocations: 95.69 kB / 433.5 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.2778, allocations: 75.61 kB / 433.6 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.826e-05/0.2778, allocations: 31.94 kB / 433.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.71e-05/0.2779, allocations: 24 kB / 433.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.429e-05/0.278, allocations: 59.83 kB / 433.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.538e-05/0.2781, allocations: 71.66 kB / 433.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003473/0.2784, allocations: 248.6 kB / 434 MB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2784, allocations: 0 / 434 MB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2784, allocations: 0 / 434 MB, free: 3.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.2784, allocations: 0 / 434 MB, free: 3.559 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.0007115/0.2792, allocations: 421 kB / 434.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.2792, allocations: 11.98 kB / 434.4 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.202e-05/0.2793, allocations: 58.73 kB / 434.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002282/0.2795, allocations: 28.83 kB / 434.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.2798, allocations: 170.2 kB / 434.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.902e-05/0.2799, allocations: 16.88 kB / 434.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.452e-05/0.2799, allocations: 28.38 kB / 434.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004449/0.2803, allocations: 235.2 kB / 435 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.2804, allocations: 3.938 kB / 435 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.716e-05/0.2804, allocations: 19.92 kB / 435 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.2804, allocations: 4 kB / 435 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003025/0.2807, allocations: 157.6 kB / 435.1 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.2817, allocations: 0.616 MB / 435.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003166/0.282, allocations: 150.8 kB / 435.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.2821, allocations: 68.2 kB / 436 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.2822, allocations: 7.938 kB / 436 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000231/0.2824, allocations: 114.4 kB / 436.1 MB, free: 1.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.2824, allocations: 0 / 436.1 MB, free: 1.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004358/0.2828, allocations: 221.3 kB / 436.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.2829, allocations: 59.39 kB / 436.4 MB, free: 1.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.283, allocations: 157.1 kB / 436.5 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.2831, allocations: 37.69 kB / 436.5 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.2832, allocations: 132.8 kB / 436.7 MB, free: 0.707 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.504e-05/0.2832, allocations: 63.47 kB / 436.7 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.492e-05/0.2833, allocations: 74.02 kB / 436.8 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.2835, allocations: 322.8 kB / 437.1 MB, free: 244 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.2836, allocations: 64.62 kB / 437.2 MB, free: 180 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.2837, allocations: 128.1 kB / 437.3 MB, free: 28 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.284, allocations: 174.7 kB / 437.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.284, allocations: 4 kB / 437.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003618/0.2844, allocations: 245.3 kB / 437.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.2844, allocations: 7.938 kB / 437.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.2844, allocations: 4.219 kB / 437.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.2844, allocations: 8 kB / 437.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.2846, allocations: 27.92 kB / 437.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.2846, allocations: 0 / 437.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.327e-05/0.2847, allocations: 27.83 kB / 437.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.2847, allocations: 16 kB / 437.8 MB, free: 15.49 MB / 350.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.0001641/0.2848, allocations: 161.6 kB / 438 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.2849, allocations: 19.89 kB / 438 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.79e-05/0.2849, allocations: 12.94 kB / 438 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.2849, allocations: 4 kB / 438 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.2849, allocations: 7.938 kB / 438 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2849, allocations: 0 / 438 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006857/0.2856, allocations: 0.506 MB / 438.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2856, allocations: 0 / 438.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-05/0.2857, allocations: 16 kB / 438.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2857, allocations: 0 / 438.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.2857, allocations: 11.98 kB / 438.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.2857, allocations: 0 / 438.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2857, allocations: 0 / 438.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003316/0.286, allocations: 275.8 kB / 438.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.564e-05/0.2861, allocations: 19.84 kB / 438.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.707e-05/0.2861, allocations: 7.984 kB / 438.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.183e-05/0.2862, allocations: 4 kB / 438.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.297e-05/0.2862, allocations: 27.89 kB / 438.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.2863, allocations: 8 kB / 438.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.27e-05/0.2863, allocations: 95.27 kB / 439 MB, free: 14.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2863, allocations: 0 / 439 MB, free: 14.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002834/0.2866, allocations: 47.89 kB / 439 MB, free: 14.2 MB / 350.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: 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.0007027/0.2873, allocations: 0.7982 MB / 439.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003408/0.2876, allocations: 164.4 kB / 440 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2877, allocations: 0 / 440 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001472/0.2878, allocations: 75.64 kB / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.2881, allocations: 27.86 kB / 440.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002309/0.2904, allocations: 1.99 MB / 442.1 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001255/0.2905, allocations: 121 kB / 442.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.411e-05/0.2906, allocations: 21.94 kB / 442.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.2907, allocations: 59.42 kB / 442.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2907, allocations: 0 / 442.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0335/0.3242, allocations: 4.065 MB / 446.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.19, allocations: 10.72 kB / 446.4 MB, free: 6.832 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/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: 13.70110758766532]