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.001701/0.001701, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001975/0.001975, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.445/1.445, allocations: 230.6 MB / 257.5 MB, free: 7.984 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.001487/0.001487, allocations: 47.92 kB / 377.7 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.2814, allocations: 53.36 MB / 431.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003829/0.2853, allocations: 1.514 MB / 432.6 MB, free: 5.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009829/0.2863, allocations: 283.2 kB / 432.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.2864, allocations: 4 kB / 432.9 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001852/0.2866, allocations: 27.67 kB / 432.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.242e-05/0.2866, allocations: 15.8 kB / 432.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00058/0.2872, allocations: 119.8 kB / 433.1 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005099/0.2877, allocations: 271.4 kB / 433.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003871/0.2881, allocations: 134.7 kB / 433.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.2883, allocations: 87.77 kB / 433.5 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002157/0.2885, allocations: 99.53 kB / 433.6 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.157e-05/0.2886, allocations: 24 kB / 433.7 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.2887, allocations: 27.94 kB / 433.7 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.2888, allocations: 63.81 kB / 433.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.2889, allocations: 91.53 kB / 433.8 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004647/0.2894, allocations: 247.4 kB / 434.1 MB, free: 3.852 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2894, allocations: 0 / 434.1 MB, free: 3.852 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2894, allocations: 0 / 434.1 MB, free: 3.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.2894, allocations: 0 / 434.1 MB, free: 3.852 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.0009521/0.2903, allocations: 417 kB / 434.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.2904, allocations: 8.031 kB / 434.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.867e-05/0.2905, allocations: 58.72 kB / 434.6 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003714/0.2909, allocations: 40.72 kB / 434.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004331/0.2913, allocations: 162.2 kB / 434.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.427e-05/0.2913, allocations: 28.81 kB / 434.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.829e-05/0.2914, allocations: 24.38 kB / 434.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006039/0.292, allocations: 239.2 kB / 435 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/0.292, allocations: 7.922 kB / 435 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.437e-05/0.292, allocations: 8 kB / 435.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.2921, allocations: 8 kB / 435.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004493/0.2925, allocations: 157.6 kB / 435.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.294, allocations: 0.6549 MB / 435.9 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004528/0.2944, allocations: 161.8 kB / 436 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.2946, allocations: 68.81 kB / 436.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.45e-05/0.2947, allocations: 7.938 kB / 436.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002938/0.295, allocations: 114.8 kB / 436.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.395e-06/0.295, allocations: 4 kB / 436.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006555/0.2956, allocations: 217.3 kB / 436.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.766e-05/0.2957, allocations: 59.39 kB / 436.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001892/0.2959, allocations: 146 kB / 436.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.804e-05/0.2959, allocations: 41.69 kB / 436.7 MB, free: 1.086 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.2961, allocations: 128.8 kB / 436.8 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.661e-05/0.2961, allocations: 63.53 kB / 436.9 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.2963, allocations: 74.02 kB / 436.9 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.2965, allocations: 330.8 kB / 437.3 MB, free: 488 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001893/0.2967, allocations: 60.62 kB / 437.3 MB, free: 428 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002465/0.2969, allocations: 128.1 kB / 437.4 MB, free: 276 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003645/0.2973, allocations: 179 kB / 437.6 MB, free: 72 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.2973, allocations: 0 / 437.6 MB, free: 72 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000558/0.2979, allocations: 245.3 kB / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.2979, allocations: 8 kB / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.2979, allocations: 0 / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.769e-05/0.2979, allocations: 4 kB / 437.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.2981, allocations: 31.92 kB / 437.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.2981, allocations: 4 kB / 437.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.2983, allocations: 35.77 kB / 437.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.878e-05/0.2983, allocations: 12 kB / 438 MB, free: 15.73 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.0002074/0.2985, allocations: 153.9 kB / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.771e-05/0.2986, allocations: 19.89 kB / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.04e-05/0.2986, allocations: 16.94 kB / 438.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.2986, allocations: 4 kB / 438.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.2986, allocations: 0 / 438.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.2986, allocations: 0 / 438.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.2997, allocations: 0.5147 MB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2997, allocations: 0 / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.2998, allocations: 19.94 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.2999, allocations: 11.92 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.2999, allocations: 4 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2999, allocations: 0 / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2999, allocations: 0 / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004543/0.3003, allocations: 274.7 kB / 439 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.3e-05/0.3004, allocations: 11.89 kB / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.683e-05/0.3004, allocations: 11.97 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.3005, allocations: 12 kB / 439 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.966e-05/0.3006, allocations: 27.89 kB / 439 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.068e-05/0.3007, allocations: 8 kB / 439 MB, free: 14.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.178e-05/0.3007, allocations: 94.64 kB / 439.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3007, allocations: 0 / 439.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005084/0.3012, allocations: 51.84 kB / 439.2 MB, free: 14.44 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.000917/0.3022, allocations: 0.8021 MB / 440 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004881/0.3027, allocations: 159.8 kB / 440.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3027, allocations: 0 / 440.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002018/0.3029, allocations: 74 kB / 440.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004552/0.3033, allocations: 27.86 kB / 440.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003217/0.3065, allocations: 1.988 MB / 442.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000662/0.3072, allocations: 0.7284 MB / 442.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00011/0.3073, allocations: 25.94 kB / 443 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.3074, allocations: 55.42 kB / 443 MB, free: 10.41 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3074, allocations: 0 / 443 MB, free: 10.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03665/0.3441, allocations: 3.674 MB / 446.7 MB, free: 6.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.04, allocations: 15.42 kB / 446.7 MB, free: 6.855 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.611764924000454]