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.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.001557/0.001557, allocations: 116 kB / 18.4 MB, free: 4.691 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.001591/0.001592, allocations: 194.9 kB / 21.35 MB, free: 1.754 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.647/1.647, allocations: 205.1 MB / 229.2 MB, free: 4.379 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.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,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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 54.2 kB / 334.7 MB, free: 14.73 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1056, allocations: 46.62 MB / 381.3 MB, free: 1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003298/0.1089, allocations: 1.471 MB / 382.8 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007445/0.1097, allocations: 245.2 kB / 383 MB, free: 15.28 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.1098, allocations: 4 kB / 383 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001603/0.11, allocations: 27.69 kB / 383.1 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.563e-05/0.1101, allocations: 19.8 kB / 383.1 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004948/0.1106, allocations: 103.9 kB / 383.2 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004419/0.111, allocations: 263.4 kB / 383.4 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003474/0.1114, allocations: 170.6 kB / 383.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.1115, allocations: 87.69 kB / 383.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001706/0.1117, allocations: 95.59 kB / 383.8 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.058e-05/0.1118, allocations: 24 kB / 383.8 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.1119, allocations: 31.98 kB / 383.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.128e-05/0.112, allocations: 51.84 kB / 383.9 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.1121, allocations: 103.5 kB / 384 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004114/0.1125, allocations: 239.1 kB / 384.2 MB, free: 14.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1125, allocations: 0 / 384.2 MB, free: 14.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.1126, allocations: 0 / 384.2 MB, free: 14.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1126, allocations: 4 kB / 384.2 MB, free: 14.07 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.0009476/0.1135, allocations: 490.2 kB / 384.7 MB, free: 13.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.32e-05/0.1136, allocations: 12.03 kB / 384.7 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.184e-05/0.1137, allocations: 54.73 kB / 384.8 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.638e-05/0.1138, allocations: 28.8 kB / 384.8 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004322/0.1142, allocations: 224.1 kB / 385 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.627e-05/0.1143, allocations: 20.94 kB / 385 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.437e-05/0.1143, allocations: 24.38 kB / 385.1 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005716/0.1149, allocations: 248 kB / 385.3 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.1149, allocations: 7.922 kB / 385.3 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.975e-05/0.115, allocations: 8 kB / 385.3 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.115, allocations: 8 kB / 385.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003414/0.1153, allocations: 157.7 kB / 385.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.1167, allocations: 0.7092 MB / 386.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00043/0.1171, allocations: 162.9 kB / 386.3 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.1173, allocations: 80.83 kB / 386.4 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.408e-05/0.1173, allocations: 7.875 kB / 386.4 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002706/0.1176, allocations: 127.1 kB / 386.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.455e-06/0.1176, allocations: 0 / 386.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005194/0.1182, allocations: 217.4 kB / 386.8 MB, free: 11.33 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.559e-05/0.1182, allocations: 55.41 kB / 386.8 MB, free: 11.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.1184, allocations: 153.9 kB / 387 MB, free: 11.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.131e-05/0.1185, allocations: 37.69 kB / 387 MB, free: 11.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.1187, allocations: 140.7 kB / 387.1 MB, free: 10.92 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.192e-05/0.1187, allocations: 59.48 kB / 387.2 MB, free: 10.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.1189, allocations: 86 kB / 387.3 MB, free: 10.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.1192, allocations: 318.8 kB / 387.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.1193, allocations: 64.62 kB / 387.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.1195, allocations: 128.1 kB / 387.8 MB, free: 10.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003288/0.1199, allocations: 174.7 kB / 388 MB, free: 10.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1199, allocations: 0 / 388 MB, free: 10.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004473/0.1203, allocations: 249.3 kB / 388.2 MB, free: 9.789 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.1204, allocations: 4 kB / 388.2 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.1204, allocations: 4 kB / 388.2 MB, free: 9.781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.493e-05/0.1204, allocations: 0 / 388.2 MB, free: 9.781 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.1206, allocations: 35.84 kB / 388.2 MB, free: 9.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.1207, allocations: 4 kB / 388.3 MB, free: 9.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.1208, allocations: 27.84 kB / 388.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.913e-05/0.1208, allocations: 8.219 kB / 388.3 MB, free: 9.707 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.0002454/0.1211, allocations: 177.6 kB / 388.5 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.831e-05/0.1211, allocations: 11.91 kB / 388.5 MB, free: 9.512 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004363/0.1216, allocations: 198.3 kB / 388.7 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.1216, allocations: 4 kB / 388.7 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.1216, allocations: 4 kB / 388.7 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.1216, allocations: 0 / 388.7 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009203/0.1226, allocations: 0.5645 MB / 389.2 MB, free: 8.684 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1226, allocations: 0 / 389.2 MB, free: 8.684 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.776e-05/0.1227, allocations: 12 kB / 389.2 MB, free: 8.672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.1227, allocations: 3.984 kB / 389.3 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.1227, allocations: 8 kB / 389.3 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.1227, allocations: 0 / 389.3 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.1227, allocations: 3.938 kB / 389.3 MB, free: 8.656 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004353/0.1232, allocations: 287.7 kB / 389.5 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.923e-05/0.1233, allocations: 92.95 kB / 389.6 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.717e-05/0.1233, allocations: 8 kB / 389.6 MB, free: 8.242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.976e-05/0.1234, allocations: 11.98 kB / 389.7 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.1235, allocations: 23.91 kB / 389.7 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/0.1235, allocations: 11.94 kB / 389.7 MB, free: 8.195 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.727e-05/0.1237, allocations: 95.27 kB / 389.8 MB, free: 8.102 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1237, allocations: 0 / 389.8 MB, free: 8.102 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000343/0.124, allocations: 47.89 kB / 389.8 MB, free: 8.055 MB / 318.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.0009232/0.1249, allocations: 0.8179 MB / 390.6 MB, free: 7.211 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004025/0.1254, allocations: 191.7 kB / 390.8 MB, free: 7.023 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1254, allocations: 0 / 390.8 MB, free: 7.023 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.1255, allocations: 83.91 kB / 390.9 MB, free: 6.941 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.1259, allocations: 28.3 kB / 390.9 MB, free: 6.914 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002798/0.1287, allocations: 2.008 MB / 393 MB, free: 4.785 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005269/0.1292, allocations: 0.7363 MB / 393.7 MB, free: 4.023 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.1293, allocations: 29.92 kB / 393.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/0.1295, allocations: 55.42 kB / 393.8 MB, free: 3.941 MB / 318.1 MB Notification: Performance of SimCode: time 1.874e-06/0.1295, allocations: 3.938 kB / 393.8 MB, free: 3.938 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02783/0.1574, allocations: 3.65 MB / 397.4 MB, free: 244 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.47/8.628, allocations: 11.78 kB / 397.4 MB, free: 232 kB / 318.1 MB " [Timeout remaining time 651] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.389804702019319]