Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001708/0.001708, allocations: 115.5 kB / 18.45 MB, free: 4.609 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.0019/0.0019, allocations: 215.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.54/1.54, allocations: 207.6 MB / 231.8 MB, free: 4.055 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 52.88 kB / 342.3 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09897/0.1007, allocations: 49.14 MB / 391.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003177/0.1038, allocations: 1.655 MB / 393.1 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006621/0.1045, allocations: 267.2 kB / 393.3 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.963e-05/0.1046, allocations: 7.938 kB / 393.3 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.1047, allocations: 27.67 kB / 393.4 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.681e-05/0.1048, allocations: 19.8 kB / 393.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004014/0.1052, allocations: 115.8 kB / 393.5 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003552/0.1055, allocations: 267.6 kB / 393.7 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003132/0.1058, allocations: 166.9 kB / 393.9 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.106, allocations: 95.64 kB / 394 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.1061, allocations: 95.53 kB / 394.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4e-05/0.1061, allocations: 24 kB / 394.1 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.999e-05/0.1062, allocations: 35.98 kB / 394.2 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.236e-05/0.1063, allocations: 63.77 kB / 394.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.1064, allocations: 99.47 kB / 394.3 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003476/0.1068, allocations: 262.9 kB / 394.6 MB, free: 5.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1068, allocations: 0 / 394.6 MB, free: 5.527 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1068, allocations: 0 / 394.6 MB, free: 5.527 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.1068, allocations: 0 / 394.6 MB, free: 5.527 MB / 318.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.0007183/0.1075, allocations: 497.8 kB / 395.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.1075, allocations: 8.031 kB / 395.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.916e-05/0.1076, allocations: 58.73 kB / 395.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.45e-05/0.1076, allocations: 24.8 kB / 395.1 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003309/0.108, allocations: 236 kB / 395.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/0.108, allocations: 24.88 kB / 395.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.255e-05/0.1081, allocations: 28.38 kB / 395.4 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000507/0.1086, allocations: 274.5 kB / 395.7 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.1086, allocations: 3.938 kB / 395.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.1086, allocations: 12 kB / 395.7 MB, free: 4.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.1086, allocations: 12 kB / 395.7 MB, free: 4.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003156/0.1089, allocations: 165.6 kB / 395.9 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.1101, allocations: 0.9596 MB / 396.8 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002697/0.1104, allocations: 142.7 kB / 397 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.1105, allocations: 60.92 kB / 397 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.1105, allocations: 4 kB / 397 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002099/0.1107, allocations: 135 kB / 397.2 MB, free: 2.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.1107, allocations: 4 kB / 397.2 MB, free: 2.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004281/0.1111, allocations: 209.4 kB / 397.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.1112, allocations: 59.39 kB / 397.4 MB, free: 2.426 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.1113, allocations: 161.9 kB / 397.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.1113, allocations: 33.7 kB / 397.6 MB, free: 2.219 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1115, allocations: 144.7 kB / 397.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.972e-05/0.1115, allocations: 67.5 kB / 397.8 MB, free: 2.004 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.1116, allocations: 78.02 kB / 397.9 MB, free: 1.918 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.1118, allocations: 330.8 kB / 398.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.1119, allocations: 64.61 kB / 398.3 MB, free: 1.523 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.1121, allocations: 141.7 kB / 398.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002774/0.1123, allocations: 192.4 kB / 398.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1123, allocations: 4 kB / 398.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003993/0.1127, allocations: 245.3 kB / 398.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.1128, allocations: 8 kB / 398.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.1128, allocations: 0 / 398.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.1128, allocations: 4 kB / 398.9 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.1129, allocations: 43.84 kB / 398.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.1129, allocations: 8.281 kB / 398.9 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.702e-05/0.113, allocations: 23.84 kB / 399 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.031e-05/0.1131, allocations: 19.94 kB / 399 MB, free: 0.7812 MB / 318.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001621/0.1132, allocations: 156.3 kB / 399.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.615e-05/0.1133, allocations: 15.91 kB / 399.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003457/0.1136, allocations: 190.7 kB / 399.3 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.1136, allocations: 4 kB / 399.3 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.1136, allocations: 0 / 399.3 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1136, allocations: 4 kB / 399.3 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007383/0.1144, allocations: 0.5831 MB / 399.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.1144, allocations: 0 / 399.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.556e-05/0.1144, allocations: 15.94 kB / 399.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.1144, allocations: 7.938 kB / 399.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/0.1145, allocations: 7.984 kB / 400 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1145, allocations: 0 / 400 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1145, allocations: 0 / 400 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003237/0.1148, allocations: 283.7 kB / 400.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.844e-05/0.1148, allocations: 96.89 kB / 400.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.07e-05/0.1149, allocations: 8 kB / 400.3 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.433e-05/0.115, allocations: 7.938 kB / 400.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.477e-05/0.115, allocations: 19.97 kB / 400.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.115, allocations: 8 kB / 400.4 MB, free: 15.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.902e-05/0.1151, allocations: 99.25 kB / 400.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1151, allocations: 0 / 400.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003073/0.1154, allocations: 55.89 kB / 400.5 MB, free: 15.12 MB / 334.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: 19 (step.localActive,step.active,transition1.enableFire,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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0006724/0.1161, allocations: 0.8218 MB / 401.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003425/0.1164, allocations: 168.2 kB / 401.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.1164, allocations: 4.062 kB / 401.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001288/0.1166, allocations: 71.91 kB / 401.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.1169, allocations: 27.92 kB / 401.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.1194, allocations: 2.062 MB / 403.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.1198, allocations: 0.7438 MB / 404.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.778e-05/0.1199, allocations: 25.94 kB / 404.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.12, allocations: 63.41 kB / 404.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.12, allocations: 0 / 404.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02717/0.1471, allocations: 3.741 MB / 408.2 MB, free: 7.172 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.24/8.387, allocations: 3.938 kB / 408.2 MB, free: 7.168 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998203 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable transition1.enableFire in file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.075844656006666]