Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001794/0.001794, 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.002199/0.002199, 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.541/1.541, allocations: 207.6 MB / 231.8 MB, free: 4.062 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_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",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.001831/0.001831, allocations: 56.53 kB / 342.3 MB, free: 10.01 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09822/0.1, allocations: 49.12 MB / 391.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00323/0.1033, allocations: 1.695 MB / 393.1 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006871/0.104, allocations: 255.3 kB / 393.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.1041, allocations: 7.938 kB / 393.3 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.1042, allocations: 27.67 kB / 393.4 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.436e-05/0.1043, allocations: 27.78 kB / 393.4 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004362/0.1047, allocations: 115.7 kB / 393.5 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000359/0.1051, allocations: 263.5 kB / 393.8 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003274/0.1054, allocations: 161.5 kB / 393.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.1055, allocations: 91.7 kB / 394 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.1057, allocations: 99.53 kB / 394.1 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.871e-05/0.1057, allocations: 24 kB / 394.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.239e-05/0.1058, allocations: 32 kB / 394.2 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.667e-05/0.1059, allocations: 59.83 kB / 394.2 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.106, allocations: 99.45 kB / 394.3 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004284/0.1064, allocations: 251 kB / 394.6 MB, free: 5.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.1064, allocations: 4 kB / 394.6 MB, free: 5.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1064, allocations: 0 / 394.6 MB, free: 5.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.1065, allocations: 0 / 394.6 MB, free: 5.531 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.0008267/0.1073, allocations: 489.8 kB / 395.1 MB, free: 5.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.1073, allocations: 12.03 kB / 395.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.518e-05/0.1074, allocations: 62.72 kB / 395.1 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.195e-05/0.1075, allocations: 24.8 kB / 395.1 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004142/0.1079, allocations: 240 kB / 395.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.511e-05/0.108, allocations: 24.94 kB / 395.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.297e-05/0.108, allocations: 28.38 kB / 395.4 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005271/0.1085, allocations: 274.5 kB / 395.7 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.1085, allocations: 3.938 kB / 395.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.1086, allocations: 8 kB / 395.7 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.1086, allocations: 4 kB / 395.7 MB, free: 4.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000316/0.1089, allocations: 165.6 kB / 395.9 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.1102, allocations: 0.9674 MB / 396.8 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003085/0.1105, allocations: 146.7 kB / 397 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.1107, allocations: 64.83 kB / 397.1 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.1107, allocations: 0 / 397.1 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002321/0.1109, allocations: 123 kB / 397.2 MB, free: 2.723 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.024e-06/0.1109, allocations: 4 kB / 397.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004863/0.1114, allocations: 209.4 kB / 397.4 MB, free: 2.508 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.206e-05/0.1115, allocations: 55.41 kB / 397.4 MB, free: 2.441 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.1116, allocations: 157.7 kB / 397.6 MB, free: 2.277 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.298e-05/0.1117, allocations: 33.7 kB / 397.6 MB, free: 2.238 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.1118, allocations: 148.7 kB / 397.8 MB, free: 2.086 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.522e-05/0.1118, allocations: 59.58 kB / 397.8 MB, free: 2.027 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.112, allocations: 81.95 kB / 397.9 MB, free: 1.938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1121, allocations: 334.7 kB / 398.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.1122, allocations: 64.62 kB / 398.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001969/0.1124, allocations: 141.7 kB / 398.4 MB, free: 1.371 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002828/0.1127, allocations: 184.4 kB / 398.6 MB, free: 1.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1127, allocations: 4 kB / 398.6 MB, free: 1.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000431/0.1131, allocations: 253.3 kB / 398.9 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.1131, allocations: 4 kB / 398.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1132, allocations: 4 kB / 398.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.1132, allocations: 4 kB / 398.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.1133, allocations: 39.86 kB / 398.9 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.1133, allocations: 8.281 kB / 398.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.1135, allocations: 35.77 kB / 399 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.1135, allocations: 8 kB / 399 MB, free: 0.8008 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.000179/0.1137, allocations: 160.3 kB / 399.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.378e-05/0.1137, allocations: 7.953 kB / 399.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003774/0.1141, allocations: 194.3 kB / 399.3 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.1141, allocations: 4 kB / 399.3 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1141, allocations: 0 / 399.3 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.1141, allocations: 4 kB / 399.3 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008594/0.115, allocations: 0.5831 MB / 399.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.115, allocations: 0 / 399.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.43e-05/0.115, allocations: 23.97 kB / 399.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.115, allocations: 3.938 kB / 399.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.1151, allocations: 0 / 399.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.1151, allocations: 7.938 kB / 399.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1151, allocations: 0 / 399.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000351/0.1154, allocations: 279.7 kB / 400.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.063e-05/0.1155, allocations: 96.89 kB / 400.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.1155, allocations: 4 kB / 400.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.72e-05/0.1156, allocations: 11.98 kB / 400.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.918e-05/0.1157, allocations: 19.97 kB / 400.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.1157, allocations: 4 kB / 400.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.639e-05/0.1158, allocations: 99.27 kB / 400.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1158, allocations: 0 / 400.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003228/0.1161, allocations: 55.89 kB / 400.5 MB, free: 15.15 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,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: 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.0007772/0.1169, allocations: 0.8178 MB / 401.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003853/0.1173, allocations: 176.2 kB / 401.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.1173, allocations: 8.062 kB / 401.5 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.1174, allocations: 67.92 kB / 401.6 MB, free: 14.06 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.1177, allocations: 27.92 kB / 401.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002612/0.1203, allocations: 2.058 MB / 403.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003853/0.1207, allocations: 0.7285 MB / 404.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000125/0.1209, allocations: 29.94 kB / 404.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.121, allocations: 63.41 kB / 404.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.121, allocations: 0 / 404.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02738/0.1484, allocations: 3.702 MB / 408.2 MB, free: 7.238 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.69/8.838, allocations: 7.875 kB / 408.2 MB, free: 7.23 MB / 334.1 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_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_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.45912301899807]