Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 187.5 kB / 23.7 MB, free: 4.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 51.91 kB / 370.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.297, allocations: 52.19 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003049/0.3001, allocations: 1.671 MB / 424.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007205/0.3008, allocations: 291.2 kB / 424.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.347e-05/0.3009, allocations: 7.938 kB / 424.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.301, allocations: 27.73 kB / 424.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.343e-05/0.3011, allocations: 15.75 kB / 424.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004408/0.3015, allocations: 127.8 kB / 424.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003385/0.3019, allocations: 267.5 kB / 424.9 MB, free: 12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002845/0.3021, allocations: 147.7 kB / 425.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.3023, allocations: 91.7 kB / 425.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/0.3024, allocations: 87.52 kB / 425.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.326e-05/0.3025, allocations: 24 kB / 425.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.058e-05/0.3025, allocations: 35.94 kB / 425.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.926e-05/0.3026, allocations: 59.83 kB / 425.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.3027, allocations: 83.58 kB / 425.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003472/0.3031, allocations: 258.9 kB / 425.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3031, allocations: 4 kB / 425.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3031, allocations: 0 / 425.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.3031, allocations: 4 kB / 425.7 MB, free: 11.21 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006915/0.3038, allocations: 424.3 kB / 426.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.3038, allocations: 11.97 kB / 426.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.882e-05/0.3039, allocations: 58.72 kB / 426.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.134e-05/0.304, allocations: 24.8 kB / 426.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000428/0.3044, allocations: 170.2 kB / 426.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.822e-05/0.3045, allocations: 24.86 kB / 426.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.24e-05/0.3045, allocations: 28.38 kB / 426.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006516/0.3052, allocations: 269.8 kB / 426.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.3052, allocations: 11.81 kB / 426.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.895e-05/0.3052, allocations: 19.98 kB / 426.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.3053, allocations: 4 kB / 426.8 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003496/0.3056, allocations: 165.6 kB / 426.9 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.3068, allocations: 0.8859 MB / 427.8 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003335/0.3071, allocations: 157.3 kB / 428 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.3073, allocations: 65.78 kB / 428 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.3073, allocations: 4 kB / 428 MB, free: 8.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002294/0.3075, allocations: 148.4 kB / 428.2 MB, free: 8.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.372e-06/0.3075, allocations: 8 kB / 428.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004566/0.308, allocations: 217.4 kB / 428.4 MB, free: 8.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/0.308, allocations: 85.05 kB / 428.5 MB, free: 8.262 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.3082, allocations: 157.6 kB / 428.6 MB, free: 8.098 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.656e-05/0.3082, allocations: 37.7 kB / 428.7 MB, free: 8.055 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.3083, allocations: 132.8 kB / 428.8 MB, free: 7.918 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.029e-05/0.3084, allocations: 71.45 kB / 428.9 MB, free: 7.848 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.3085, allocations: 73.69 kB / 428.9 MB, free: 7.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.3087, allocations: 334.8 kB / 429.3 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.3088, allocations: 64.09 kB / 429.3 MB, free: 7.371 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.309, allocations: 140.5 kB / 429.5 MB, free: 7.203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002916/0.3093, allocations: 192.3 kB / 429.6 MB, free: 6.984 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.3093, allocations: 0 / 429.6 MB, free: 6.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004092/0.3097, allocations: 265.8 kB / 429.9 MB, free: 6.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.3097, allocations: 4 kB / 429.9 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.3098, allocations: 4 kB / 429.9 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.3098, allocations: 4 kB / 429.9 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.3099, allocations: 31.92 kB / 429.9 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.3099, allocations: 4 kB / 430 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.31, allocations: 40.05 kB / 430 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.281e-05/0.3101, allocations: 16 kB / 430 MB, free: 6.617 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001735/0.3102, allocations: 169.5 kB / 430.2 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.66e-05/0.3103, allocations: 15.89 kB / 430.2 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003752/0.3107, allocations: 190.5 kB / 430.4 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.3107, allocations: 4 kB / 430.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3107, allocations: 0 / 430.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.3107, allocations: 0 / 430.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008002/0.3115, allocations: 0.547 MB / 430.9 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3115, allocations: 4 kB / 430.9 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.256e-05/0.3115, allocations: 23.92 kB / 431 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.3116, allocations: 7.938 kB / 431 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.3116, allocations: 0 / 431 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.3116, allocations: 4 kB / 431 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.3116, allocations: 7.984 kB / 431 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003887/0.312, allocations: 292.4 kB / 431.3 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.178e-05/0.312, allocations: 23.78 kB / 431.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.312, allocations: 11.92 kB / 431.3 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.362e-05/0.3121, allocations: 8 kB / 431.3 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.865e-05/0.3122, allocations: 23.97 kB / 431.3 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.3122, allocations: 11.98 kB / 431.3 MB, free: 5.195 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.963e-05/0.3123, allocations: 95.27 kB / 431.4 MB, free: 5.102 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3123, allocations: 0 / 431.4 MB, free: 5.102 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003045/0.3126, allocations: 51.89 kB / 431.5 MB, free: 5.051 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0007479/0.3133, allocations: 0.83 MB / 432.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003462/0.3137, allocations: 172.3 kB / 432.5 MB, free: 4.023 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3137, allocations: 0 / 432.5 MB, free: 4.023 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001584/0.3138, allocations: 92.27 kB / 432.6 MB, free: 3.934 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002961/0.3141, allocations: 19.98 kB / 432.6 MB, free: 3.914 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002526/0.3167, allocations: 2.075 MB / 434.7 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001352/0.3168, allocations: 125.3 kB / 434.8 MB, free: 1.559 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.519e-05/0.3169, allocations: 21.94 kB / 434.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.317, allocations: 67.59 kB / 434.9 MB, free: 1.465 MB / 334.1 MB Notification: Performance of SimCode: time 1.072e-06/0.317, allocations: 4 kB / 434.9 MB, free: 1.461 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03221/0.3492, allocations: 4.376 MB / 439.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.29, allocations: 11.91 kB / 439.3 MB, free: 13.22 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_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_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable transition1.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.851820851210505]