Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0006893/0.0006893, allocations: 79.7 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008018/0.0008018, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8965/0.8965, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.476e-05/1.622e-05, allocations: 4.391 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001717/0.001733, allocations: 1.475 MB / 326 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000493/0.002226, allocations: 291.2 kB / 326.3 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.024e-05/0.002306, allocations: 0 / 326.3 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.002442, allocations: 27.67 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.439e-05/0.002476, allocations: 23.8 kB / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003475/0.002824, allocations: 107.8 kB / 326.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002398/0.003063, allocations: 271.4 kB / 326.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002245/0.003288, allocations: 134.7 kB / 326.8 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.003398, allocations: 139.7 kB / 327 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.003501, allocations: 71.77 kB / 327.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.003529, allocations: 24 kB / 327.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.852e-05/0.003587, allocations: 24 kB / 327.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.298e-05/0.00364, allocations: 55.8 kB / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.181e-05/0.003702, allocations: 63.83 kB / 327.2 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002392/0.003941, allocations: 251.2 kB / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.003943, allocations: 0 / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.003944, allocations: 0 / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.003948, allocations: 0 / 327.5 MB, free: 13.02 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.0005012/0.00445, allocations: 421 kB / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.004487, allocations: 12.03 kB / 327.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.737e-05/0.004535, allocations: 58.67 kB / 327.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/0.004706, allocations: 32.81 kB / 328 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.004911, allocations: 165.5 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/0.004941, allocations: 20.88 kB / 328.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.447e-05/0.004965, allocations: 32.31 kB / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003053/0.00527, allocations: 235.3 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.005282, allocations: 192 / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.005299, allocations: 12.38 kB / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.005306, allocations: 12.12 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000197/0.005503, allocations: 157.9 kB / 328.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006513/0.006154, allocations: 0.6084 MB / 329.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002078/0.006362, allocations: 158.7 kB / 329.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.248e-05/0.006434, allocations: 64.83 kB / 329.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.006451, allocations: 4 kB / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004103/0.006862, allocations: 121.6 kB / 329.5 MB, free: 10.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.352e-06/0.006863, allocations: 0 / 329.5 MB, free: 10.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003103/0.007173, allocations: 218.4 kB / 329.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.818e-05/0.007211, allocations: 63.34 kB / 329.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.239e-05/0.007294, allocations: 150 kB / 330 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.007312, allocations: 33.7 kB / 330 MB, free: 10.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.769e-05/0.007379, allocations: 132.8 kB / 330.1 MB, free: 10.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.206e-05/0.007411, allocations: 63.52 kB / 330.2 MB, free: 10.1 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.532e-05/0.007477, allocations: 74.02 kB / 330.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.36e-05/0.00756, allocations: 322.8 kB / 330.6 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.114e-05/0.007642, allocations: 64.62 kB / 330.6 MB, free: 9.629 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.007743, allocations: 132 kB / 330.8 MB, free: 9.477 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.007915, allocations: 179.2 kB / 330.9 MB, free: 9.277 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.007918, allocations: 0 / 330.9 MB, free: 9.277 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002309/0.008149, allocations: 241.3 kB / 331.2 MB, free: 9.035 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.008162, allocations: 8.156 kB / 331.2 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.008168, allocations: 8 kB / 331.2 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.008181, allocations: 4 kB / 331.2 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.985e-05/0.008261, allocations: 27.92 kB / 331.2 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.008266, allocations: 0 / 331.2 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.261e-05/0.008319, allocations: 31.78 kB / 331.3 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.00833, allocations: 12 kB / 331.3 MB, free: 8.945 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.623e-05/0.008427, allocations: 157.8 kB / 331.4 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.368e-05/0.00844, allocations: 19.84 kB / 331.4 MB, free: 8.762 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.089e-05/0.008471, allocations: 16.94 kB / 331.5 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.008474, allocations: 8 kB / 331.5 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.008479, allocations: 0 / 331.5 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.008484, allocations: 3.984 kB / 331.5 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004277/0.008912, allocations: 0.4966 MB / 332 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.008914, allocations: 4 kB / 332 MB, free: 8.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.707e-05/0.008951, allocations: 19.92 kB / 332 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.008954, allocations: 0 / 332 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.008964, allocations: 8 kB / 332 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.008966, allocations: 0 / 332 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.008966, allocations: 0 / 332 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001789/0.009145, allocations: 279.9 kB / 332.3 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.115e-05/0.009156, allocations: 15.84 kB / 332.3 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.571e-05/0.009172, allocations: 4 kB / 332.3 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.22e-05/0.009214, allocations: 7.984 kB / 332.3 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.262e-05/0.009267, allocations: 27.84 kB / 332.3 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.009275, allocations: 8 kB / 332.3 MB, free: 7.809 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.503e-05/0.00931, allocations: 98.77 kB / 332.4 MB, free: 7.715 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00931, allocations: 0 / 332.4 MB, free: 7.715 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001816/0.009492, allocations: 47.89 kB / 332.5 MB, free: 7.668 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.0003686/0.00986, allocations: 0.812 MB / 333.3 MB, free: 6.828 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002077/0.01007, allocations: 163.7 kB / 333.5 MB, free: 6.668 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01007, allocations: 0 / 333.5 MB, free: 6.668 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.059e-05/0.01015, allocations: 75.84 kB / 333.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001972/0.01035, allocations: 16 kB / 333.5 MB, free: 6.578 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.01187, allocations: 2.011 MB / 335.6 MB, free: 4.449 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.476e-05/0.01195, allocations: 124.5 kB / 335.7 MB, free: 4.305 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.422e-05/0.01201, allocations: 25.94 kB / 335.7 MB, free: 4.281 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.123e-05/0.01209, allocations: 60.47 kB / 335.8 MB, free: 4.223 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01209, allocations: 0 / 335.8 MB, free: 4.223 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01579/0.02787, allocations: 4.186 MB / 339.9 MB, free: 164 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.919/6.947, allocations: 7.875 kB / 340 MB, free: 156 kB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.749182094819844]