Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001928/0.001928, allocations: 123 kB / 17.79 MB, free: 5.359 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.002573/0.002573, allocations: 193.2 kB / 20.73 MB, free: 2.422 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.506/1.506, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.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,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 51.91 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1045, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002764/0.1073, allocations: 1.487 MB / 419.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006592/0.1079, allocations: 279.2 kB / 419.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.061e-05/0.108, allocations: 7.938 kB / 419.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.1081, allocations: 23.73 kB / 419.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.251e-05/0.1082, allocations: 15.81 kB / 419.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003946/0.1086, allocations: 119.8 kB / 419.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003371/0.1089, allocations: 259.5 kB / 419.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002706/0.1092, allocations: 146.4 kB / 420.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.1093, allocations: 91.7 kB / 420.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.1094, allocations: 91.59 kB / 420.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.917e-05/0.1095, allocations: 24 kB / 420.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.041e-05/0.1095, allocations: 31.98 kB / 420.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.71e-05/0.1096, allocations: 51.84 kB / 420.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.1097, allocations: 95.52 kB / 420.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003136/0.11, allocations: 247 kB / 420.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.11, allocations: 3.984 kB / 420.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.11, allocations: 4 kB / 420.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.11, allocations: 0 / 420.7 MB, free: 9.664 MB / 350.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.0007111/0.1107, allocations: 486.2 kB / 421.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.1108, allocations: 12.03 kB / 421.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.653e-05/0.1109, allocations: 62.67 kB / 421.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.499e-05/0.1109, allocations: 20.8 kB / 421.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002886/0.1112, allocations: 228.1 kB / 421.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.943e-05/0.1112, allocations: 24.94 kB / 421.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.842e-05/0.1113, allocations: 24.38 kB / 421.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004322/0.1117, allocations: 244 kB / 421.8 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1117, allocations: 3.938 kB / 421.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/0.1118, allocations: 11.94 kB / 421.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.1118, allocations: 11.92 kB / 421.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003089/0.1121, allocations: 153.7 kB / 422 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.1131, allocations: 0.7053 MB / 422.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002997/0.1134, allocations: 146.8 kB / 422.8 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.1135, allocations: 72.77 kB / 422.9 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.1135, allocations: 3.938 kB / 422.9 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002178/0.1138, allocations: 123.3 kB / 423 MB, free: 7.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.1138, allocations: 3.938 kB / 423 MB, free: 7.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004432/0.1142, allocations: 218.5 kB / 423.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.1143, allocations: 59.39 kB / 423.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.1144, allocations: 149 kB / 423.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.316e-05/0.1144, allocations: 37.7 kB / 423.5 MB, free: 6.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.1145, allocations: 132.8 kB / 423.6 MB, free: 6.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.328e-05/0.1146, allocations: 59.59 kB / 423.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.1147, allocations: 81.95 kB / 423.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1148, allocations: 326.8 kB / 424 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.1149, allocations: 60.62 kB / 424.1 MB, free: 6.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.1151, allocations: 128 kB / 424.2 MB, free: 5.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.1154, allocations: 171.3 kB / 424.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.113e-06/0.1154, allocations: 4 kB / 424.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004021/0.1158, allocations: 249.3 kB / 424.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.1158, allocations: 4 kB / 424.6 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.1158, allocations: 7.984 kB / 424.7 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.1158, allocations: 4 kB / 424.7 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.116, allocations: 27.92 kB / 424.7 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.934e-06/0.116, allocations: 4 kB / 424.7 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.642e-05/0.1161, allocations: 28.05 kB / 424.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.043e-05/0.1161, allocations: 19.94 kB / 424.7 MB, free: 5.332 MB / 350.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.0001446/0.1162, allocations: 153.7 kB / 424.9 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.19e-05/0.1163, allocations: 11.91 kB / 424.9 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003617/0.1166, allocations: 207 kB / 425.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.1166, allocations: 4 kB / 425.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1166, allocations: 0 / 425.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1166, allocations: 0 / 425.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007569/0.1174, allocations: 0.5723 MB / 425.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1174, allocations: 0 / 425.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.129e-05/0.1175, allocations: 19.92 kB / 425.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.1175, allocations: 4 kB / 425.7 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.1175, allocations: 4 kB / 425.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.1175, allocations: 0 / 425.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.1175, allocations: 7.875 kB / 425.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003315/0.1178, allocations: 287.2 kB / 426 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.643e-05/0.1179, allocations: 93 kB / 426.1 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.1179, allocations: 0 / 426.1 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.792e-05/0.118, allocations: 11.98 kB / 426.1 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.279e-05/0.1181, allocations: 31.84 kB / 426.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.1181, allocations: 4 kB / 426.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.078e-05/0.1182, allocations: 99.27 kB / 426.2 MB, free: 3.734 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1182, allocations: 0 / 426.2 MB, free: 3.734 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003021/0.1185, allocations: 47.89 kB / 426.3 MB, free: 3.688 MB / 350.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.0006991/0.1192, allocations: 0.8222 MB / 427.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003375/0.1195, allocations: 172 kB / 427.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1195, allocations: 0 / 427.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000135/0.1196, allocations: 76.34 kB / 427.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.1199, allocations: 25.91 kB / 427.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002416/0.1223, allocations: 2.011 MB / 429.4 MB, free: 448 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.1227, allocations: 0.7324 MB / 430.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.9e-05/0.1228, allocations: 29.94 kB / 430.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.1229, allocations: 63.41 kB / 430.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1229, allocations: 0 / 430.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02609/0.149, allocations: 3.68 MB / 433.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.997/8.146, allocations: 6.844 kB / 433.9 MB, free: 11.98 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_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.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.56440660590306]