Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001849/0.001849, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002233/0.002233, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 230.5 MB / 254 MB, free: 15.16 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 59.91 kB / 372.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1081, allocations: 53.39 MB / 426.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003063/0.1112, allocations: 1.504 MB / 427.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007485/0.1119, allocations: 283.2 kB / 428.1 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.112, allocations: 0 / 428.1 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.1122, allocations: 27.67 kB / 428.1 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.696e-05/0.1122, allocations: 23.8 kB / 428.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004056/0.1126, allocations: 103.9 kB / 428.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003856/0.113, allocations: 263.5 kB / 428.5 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.1133, allocations: 134.4 kB / 428.7 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.1134, allocations: 87.72 kB / 428.7 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001488/0.1135, allocations: 95.58 kB / 428.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.508e-05/0.1136, allocations: 24 kB / 428.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.585e-05/0.1136, allocations: 31.94 kB / 428.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.375e-05/0.1137, allocations: 51.83 kB / 428.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.1138, allocations: 99.53 kB / 429 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003087/0.1141, allocations: 247 kB / 429.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1141, allocations: 3.938 kB / 429.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.1141, allocations: 0 / 429.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.1141, allocations: 0 / 429.3 MB, free: 1.789 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.0006859/0.1148, allocations: 486.3 kB / 429.8 MB, free: 1.262 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.1149, allocations: 12.03 kB / 429.8 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.095e-05/0.1149, allocations: 50.73 kB / 429.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002036/0.1151, allocations: 28.83 kB / 429.8 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.1154, allocations: 240 kB / 430.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.837e-05/0.1155, allocations: 20.94 kB / 430.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.649e-05/0.1155, allocations: 24.38 kB / 430.1 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004378/0.1159, allocations: 236 kB / 430.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.116, allocations: 7.938 kB / 430.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/0.116, allocations: 8 kB / 430.4 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.116, allocations: 8 kB / 430.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002989/0.1163, allocations: 153.6 kB / 430.5 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.1174, allocations: 0.6975 MB / 431.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002893/0.1177, allocations: 154.7 kB / 431.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.1178, allocations: 72.83 kB / 431.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.1178, allocations: 7.938 kB / 431.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001919/0.118, allocations: 111.4 kB / 431.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.432e-06/0.118, allocations: 0 / 431.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004186/0.1184, allocations: 217.3 kB / 431.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.1185, allocations: 55.41 kB / 431.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.1186, allocations: 149.3 kB / 432 MB, free: 14.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.264e-05/0.1186, allocations: 37.64 kB / 432 MB, free: 14.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.1187, allocations: 144.8 kB / 432.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.551e-05/0.1188, allocations: 59.53 kB / 432.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.1189, allocations: 74.02 kB / 432.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.119, allocations: 326.8 kB / 432.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.1192, allocations: 60.62 kB / 432.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.1193, allocations: 128.1 kB / 432.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002523/0.1196, allocations: 178.6 kB / 433 MB, free: 13.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1196, allocations: 4 kB / 433 MB, free: 13.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003657/0.1199, allocations: 241.3 kB / 433.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.12, allocations: 4 kB / 433.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.12, allocations: 4 kB / 433.2 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.12, allocations: 4 kB / 433.2 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.1201, allocations: 27.92 kB / 433.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.1201, allocations: 8.219 kB / 433.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.969e-05/0.1202, allocations: 35.77 kB / 433.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.1202, allocations: 12 kB / 433.3 MB, free: 13.48 MB / 366.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.0001478/0.1204, allocations: 153.7 kB / 433.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.17e-05/0.1204, allocations: 7.953 kB / 433.5 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.426e-05/0.1205, allocations: 24.83 kB / 433.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1205, allocations: 0 / 433.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1205, allocations: 0 / 433.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1205, allocations: 8 kB / 433.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007021/0.1212, allocations: 0.5459 MB / 434 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1212, allocations: 3.938 kB / 434 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.63e-05/0.1212, allocations: 19.92 kB / 434.1 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.1212, allocations: 7.984 kB / 434.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.1213, allocations: 4 kB / 434.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1213, allocations: 0 / 434.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1213, allocations: 4 kB / 434.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003086/0.1216, allocations: 267.9 kB / 434.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.559e-05/0.1216, allocations: 96.92 kB / 434.4 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.1217, allocations: 8 kB / 434.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.234e-05/0.1217, allocations: 4 kB / 434.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.643e-05/0.1218, allocations: 23.91 kB / 434.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.1218, allocations: 8 kB / 434.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.553e-05/0.1219, allocations: 99.27 kB / 434.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1219, allocations: 0 / 434.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002802/0.1222, allocations: 55.84 kB / 434.6 MB, free: 12.05 MB / 366.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 20 * 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.0006394/0.1228, allocations: 0.7981 MB / 435.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000304/0.1231, allocations: 168.7 kB / 435.6 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1231, allocations: 448 / 435.6 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.1232, allocations: 79.62 kB / 435.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.1235, allocations: 19.94 kB / 435.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002217/0.1257, allocations: 1.991 MB / 437.7 MB, free: 8.844 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.1261, allocations: 0.7323 MB / 438.4 MB, free: 8.086 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.743e-05/0.1262, allocations: 21.94 kB / 438.4 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.1263, allocations: 55.42 kB / 438.5 MB, free: 8.012 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1263, allocations: 4 kB / 438.5 MB, free: 8.008 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02584/0.1521, allocations: 3.416 MB / 441.9 MB, free: 4.664 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.661/7.814, allocations: 8 kB / 441.9 MB, free: 4.656 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.402701637009159]