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.001273/0.001273, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001571/0.001571, allocations: 207.7 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00147/0.00147, allocations: 43.92 kB / 377.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2913, allocations: 53.37 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003069/0.2944, allocations: 1.479 MB / 432.5 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007321/0.2951, allocations: 275.2 kB / 432.8 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.2953, allocations: 7.938 kB / 432.8 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.2954, allocations: 23.73 kB / 432.8 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.188e-05/0.2954, allocations: 19.8 kB / 432.9 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004999/0.2959, allocations: 119.8 kB / 433 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003897/0.2963, allocations: 271.4 kB / 433.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002869/0.2966, allocations: 142.6 kB / 433.4 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.2968, allocations: 87.7 kB / 433.5 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.2969, allocations: 91.61 kB / 433.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.174e-05/0.297, allocations: 24 kB / 433.6 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.006e-05/0.297, allocations: 27.98 kB / 433.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.406e-05/0.2971, allocations: 55.83 kB / 433.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001063/0.2972, allocations: 75.66 kB / 433.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003736/0.2976, allocations: 252.6 kB / 434 MB, free: 3.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.2976, allocations: 0 / 434 MB, free: 3.738 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2976, allocations: 7.938 kB / 434 MB, free: 3.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.2976, allocations: 0 / 434 MB, free: 3.73 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.0007889/0.2984, allocations: 405.1 kB / 434.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.2985, allocations: 16.02 kB / 434.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.575e-05/0.2985, allocations: 54.73 kB / 434.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003192/0.2989, allocations: 36.83 kB / 434.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000343/0.2992, allocations: 166.2 kB / 434.6 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.2993, allocations: 28.86 kB / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.311e-05/0.2993, allocations: 24.38 kB / 434.7 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004289/0.2997, allocations: 239.2 kB / 434.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.2997, allocations: 7.938 kB / 434.9 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.166e-05/0.2998, allocations: 8 kB / 434.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.2998, allocations: 8 kB / 435 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002909/0.3001, allocations: 157.6 kB / 435.1 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000991/0.3011, allocations: 0.612 MB / 435.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003164/0.3014, allocations: 150.9 kB / 435.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.3015, allocations: 68.83 kB / 435.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.132e-05/0.3015, allocations: 7.938 kB / 435.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002091/0.3017, allocations: 120.9 kB / 436.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.3017, allocations: 0 / 436.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004505/0.3022, allocations: 217.1 kB / 436.3 MB, free: 1.293 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.292e-05/0.3022, allocations: 59.41 kB / 436.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001459/0.3024, allocations: 150 kB / 436.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.3024, allocations: 37.7 kB / 436.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.3025, allocations: 128.8 kB / 436.6 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.736e-05/0.3026, allocations: 67.47 kB / 436.7 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.3027, allocations: 78 kB / 436.8 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.3029, allocations: 326.8 kB / 437.1 MB, free: 420 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.303, allocations: 64.56 kB / 437.2 MB, free: 356 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.3032, allocations: 128.1 kB / 437.3 MB, free: 204 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002519/0.3034, allocations: 175.1 kB / 437.5 MB, free: 4 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3034, allocations: 0 / 437.5 MB, free: 4 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003958/0.3038, allocations: 241.4 kB / 437.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.3038, allocations: 15.92 kB / 437.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3038, allocations: 0 / 437.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.3039, allocations: 4 kB / 437.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.304, allocations: 31.92 kB / 437.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/0.304, allocations: 7.938 kB / 437.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.794e-05/0.3041, allocations: 23.84 kB / 437.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.847e-05/0.3041, allocations: 8 kB / 437.8 MB, free: 15.67 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.0001584/0.3043, allocations: 165.9 kB / 437.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.62e-05/0.3043, allocations: 15.91 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.637e-05/0.3043, allocations: 20.88 kB / 438 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3044, allocations: 4 kB / 438 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3044, allocations: 0 / 438 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3044, allocations: 3.984 kB / 438 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000694/0.3051, allocations: 0.4936 MB / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3051, allocations: 0 / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.502e-05/0.3051, allocations: 19.92 kB / 438.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.3051, allocations: 4 kB / 438.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.3052, allocations: 8 kB / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.3052, allocations: 4 kB / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3052, allocations: 0 / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000316/0.3055, allocations: 275.9 kB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.866e-05/0.3055, allocations: 15.84 kB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.406e-05/0.3055, allocations: 4 kB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.434e-05/0.3056, allocations: 11.98 kB / 438.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.889e-05/0.3057, allocations: 23.91 kB / 438.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.3057, allocations: 8 kB / 438.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.687e-05/0.3058, allocations: 94.27 kB / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3058, allocations: 4 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002898/0.3061, allocations: 47.89 kB / 439 MB, free: 14.39 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.0007197/0.3068, allocations: 0.8049 MB / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003266/0.3071, allocations: 155.8 kB / 440 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3071, allocations: 4 kB / 440 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.3072, allocations: 75.7 kB / 440 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.3075, allocations: 20.38 kB / 440.1 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002299/0.3098, allocations: 2.004 MB / 442.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.3099, allocations: 112.5 kB / 442.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.929e-05/0.31, allocations: 21.95 kB / 442.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.3101, allocations: 59.41 kB / 442.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3101, allocations: 0 / 442.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03018/0.3403, allocations: 4.094 MB / 446.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.16, allocations: 22.16 kB / 446.4 MB, free: 7 MB / 350.1 MB " [Timeout remaining time 649] (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/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_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: 13.653075599024305]