Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001333/0.001333, allocations: 110.5 kB / 18.45 MB, free: 4.59 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.001346/0.001346, allocations: 213.6 kB / 21.42 MB, free: 1.629 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.531/1.531, allocations: 207.6 MB / 231.8 MB, free: 4.203 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,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",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.001757/0.001757, allocations: 63.91 kB / 342.3 MB, free: 10.13 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09738/0.09914, allocations: 49.12 MB / 391.4 MB, free: 8.844 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002743/0.1019, allocations: 1.479 MB / 392.9 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000672/0.1026, allocations: 241.2 kB / 393.1 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.959e-05/0.1026, allocations: 7.938 kB / 393.1 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.1028, allocations: 23.73 kB / 393.1 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.671e-05/0.1028, allocations: 23.78 kB / 393.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004004/0.1032, allocations: 111.8 kB / 393.3 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003307/0.1036, allocations: 259.6 kB / 393.5 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002637/0.1038, allocations: 142.6 kB / 393.7 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.1039, allocations: 91.7 kB / 393.8 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.1041, allocations: 91.59 kB / 393.8 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.848e-05/0.1041, allocations: 28 kB / 393.9 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.857e-05/0.1042, allocations: 31.92 kB / 393.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.305e-05/0.1043, allocations: 59.83 kB / 394 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.1044, allocations: 95.53 kB / 394.1 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003249/0.1047, allocations: 243 kB / 394.3 MB, free: 5.934 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1047, allocations: 0 / 394.3 MB, free: 5.934 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1047, allocations: 0 / 394.3 MB, free: 5.934 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.1047, allocations: 0 / 394.3 MB, free: 5.934 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007537/0.1055, allocations: 486.2 kB / 394.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.1055, allocations: 16.03 kB / 394.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.516e-05/0.1056, allocations: 58.73 kB / 394.8 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.896e-05/0.1057, allocations: 24.73 kB / 394.9 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.106, allocations: 228.1 kB / 395.1 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.907e-05/0.1061, allocations: 20.94 kB / 395.1 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.104e-05/0.1061, allocations: 24.38 kB / 395.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004648/0.1066, allocations: 244 kB / 395.4 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.1066, allocations: 3.938 kB / 395.4 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.487e-05/0.1066, allocations: 12 kB / 395.4 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.1066, allocations: 7.984 kB / 395.4 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003016/0.1069, allocations: 157.6 kB / 395.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009852/0.1079, allocations: 0.6975 MB / 396.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.1082, allocations: 158.8 kB / 396.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.1083, allocations: 68.83 kB / 396.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.1083, allocations: 3.938 kB / 396.5 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002076/0.1086, allocations: 127 kB / 396.6 MB, free: 3.441 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.1086, allocations: 0 / 396.6 MB, free: 3.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.000443/0.109, allocations: 225.3 kB / 396.8 MB, free: 3.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.109, allocations: 63.39 kB / 396.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.1092, allocations: 146 kB / 397 MB, free: 2.988 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.202e-05/0.1092, allocations: 41.64 kB / 397.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.657e-05/0.1093, allocations: 128.8 kB / 397.2 MB, free: 2.809 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.003e-05/0.1094, allocations: 63.48 kB / 397.2 MB, free: 2.746 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.1095, allocations: 78 kB / 397.3 MB, free: 2.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.1096, allocations: 326.8 kB / 397.6 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.1098, allocations: 60.62 kB / 397.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.1099, allocations: 132.1 kB / 397.8 MB, free: 2.121 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/0.1102, allocations: 174.7 kB / 398 MB, free: 1.926 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1102, allocations: 0 / 398 MB, free: 1.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003799/0.1106, allocations: 241.3 kB / 398.2 MB, free: 1.684 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.1106, allocations: 4 kB / 398.2 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.1106, allocations: 12.2 kB / 398.3 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.1106, allocations: 0 / 398.3 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.1107, allocations: 31.92 kB / 398.3 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.118e-06/0.1108, allocations: 4 kB / 398.3 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.744e-05/0.1109, allocations: 23.84 kB / 398.3 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.184e-05/0.1109, allocations: 16 kB / 398.3 MB, free: 1.594 MB / 318.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.0001473/0.111, allocations: 157.6 kB / 398.5 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.505e-05/0.1111, allocations: 15.91 kB / 398.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003536/0.1114, allocations: 206.3 kB / 398.7 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1114, allocations: 4 kB / 398.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1114, allocations: 0 / 398.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.1114, allocations: 0 / 398.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007375/0.1122, allocations: 0.5606 MB / 399.3 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1122, allocations: 3.938 kB / 399.3 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.87e-05/0.1122, allocations: 15.98 kB / 399.3 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.1123, allocations: 4 kB / 399.3 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.1123, allocations: 4 kB / 399.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.289e-06/0.1123, allocations: 7.938 kB / 399.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.1123, allocations: 7.922 kB / 399.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003246/0.1126, allocations: 283.7 kB / 399.6 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.783e-05/0.1127, allocations: 92.95 kB / 399.7 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.1127, allocations: 0 / 399.7 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.952e-05/0.1128, allocations: 11.98 kB / 399.7 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.123e-05/0.1128, allocations: 27.91 kB / 399.7 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.1129, allocations: 12 kB / 399.7 MB, free: 92 kB / 318.1 MB Notification: Performance of sorting global known variables: time 8.4e-05/0.1129, allocations: 99.25 kB / 399.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1129, allocations: 0 / 399.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003004/0.1132, allocations: 47.89 kB / 399.9 MB, free: 15.94 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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.0006768/0.1139, allocations: 0.8218 MB / 400.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003422/0.1143, allocations: 179.7 kB / 400.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1143, allocations: 0 / 400.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.1144, allocations: 79.84 kB / 400.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.1147, allocations: 27.84 kB / 401 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/0.1169, allocations: 2.012 MB / 403 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/0.1173, allocations: 0.7285 MB / 403.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.899e-05/0.1174, allocations: 29.94 kB / 403.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.1175, allocations: 63.41 kB / 403.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1175, allocations: 0 / 403.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.1439, allocations: 3.663 MB / 407.5 MB, free: 8.129 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.101/8.245, allocations: 4 kB / 407.5 MB, free: 8.125 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998801 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.826164521000464]