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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001161/0.001166, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001293/0.001293, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 61.47 kB / 307 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1051, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003087/0.1082, allocations: 1.478 MB / 359.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007866/0.109, allocations: 284.9 kB / 359.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.1092, allocations: 3.938 kB / 359.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.1093, allocations: 27.67 kB / 359.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.168e-05/0.1094, allocations: 11.81 kB / 359.4 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004494/0.1099, allocations: 115.8 kB / 359.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003578/0.1103, allocations: 251.6 kB / 359.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003175/0.1106, allocations: 178.3 kB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001129/0.1107, allocations: 79.78 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.1109, allocations: 103.5 kB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.793e-05/0.1109, allocations: 24 kB / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.624e-05/0.111, allocations: 27.98 kB / 360.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.155e-05/0.1111, allocations: 51.91 kB / 360.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.79e-05/0.1112, allocations: 95.52 kB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002745/0.1115, allocations: 227.2 kB / 360.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1115, allocations: 0 / 360.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1115, allocations: 0 / 360.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.1115, allocations: 0 / 360.5 MB, free: 11.03 MB / 302.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.0007086/0.1122, allocations: 494.7 kB / 361 MB, free: 10.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1123, allocations: 12.03 kB / 361 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.983e-05/0.1123, allocations: 62.72 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002096/0.1126, allocations: 24.75 kB / 361.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000246/0.1128, allocations: 228 kB / 361.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.84e-05/0.1129, allocations: 20.94 kB / 361.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.643e-05/0.1129, allocations: 24.38 kB / 361.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003894/0.1133, allocations: 240 kB / 361.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1133, allocations: 3.938 kB / 361.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.1133, allocations: 8 kB / 361.6 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.1134, allocations: 12 kB / 361.6 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002809/0.1136, allocations: 161.6 kB / 361.8 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009479/0.1146, allocations: 0.6857 MB / 362.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.1149, allocations: 170.8 kB / 362.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.115, allocations: 83.83 kB / 362.7 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.1151, allocations: 3.938 kB / 362.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002475/0.1153, allocations: 126.6 kB / 362.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.754e-06/0.1153, allocations: 0 / 362.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004151/0.1158, allocations: 221.1 kB / 363 MB, free: 8.297 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.1158, allocations: 55.41 kB / 363.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.1159, allocations: 145.8 kB / 363.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.106e-05/0.116, allocations: 41.69 kB / 363.3 MB, free: 8.035 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.486e-05/0.1161, allocations: 128.6 kB / 363.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.934e-05/0.1161, allocations: 59.2 kB / 363.5 MB, free: 7.848 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.114e-05/0.1162, allocations: 74.02 kB / 363.5 MB, free: 7.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1164, allocations: 330.8 kB / 363.9 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.1165, allocations: 56.64 kB / 363.9 MB, free: 7.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.1167, allocations: 124.1 kB / 364 MB, free: 7.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002346/0.1169, allocations: 174.7 kB / 364.2 MB, free: 7.043 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.1169, allocations: 4 kB / 364.2 MB, free: 7.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003943/0.1173, allocations: 245.2 kB / 364.4 MB, free: 6.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.1173, allocations: 4 kB / 364.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1174, allocations: 4 kB / 364.5 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.1174, allocations: 4 kB / 364.5 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.1175, allocations: 27.92 kB / 364.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.1175, allocations: 4 kB / 364.5 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.1176, allocations: 35.83 kB / 364.5 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.1177, allocations: 16 kB / 364.5 MB, free: 6.699 MB / 302.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.0001563/0.1178, allocations: 165.6 kB / 364.7 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.337e-05/0.1179, allocations: 7.906 kB / 364.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.284e-05/0.1179, allocations: 20.84 kB / 364.7 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.1179, allocations: 0 / 364.7 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.1179, allocations: 7.938 kB / 364.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.118, allocations: 4 kB / 364.7 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006615/0.1186, allocations: 0.5517 MB / 365.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1186, allocations: 0 / 365.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.117e-05/0.1187, allocations: 15.98 kB / 365.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1187, allocations: 4 kB / 365.3 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.1188, allocations: 4 kB / 365.3 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.1188, allocations: 0 / 365.3 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.1188, allocations: 7.938 kB / 365.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002837/0.1191, allocations: 267.2 kB / 365.6 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.37e-05/0.1191, allocations: 92.86 kB / 365.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.1191, allocations: 8 kB / 365.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.503e-05/0.1192, allocations: 11.98 kB / 365.7 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.655e-05/0.1193, allocations: 19.92 kB / 365.7 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.1193, allocations: 7.984 kB / 365.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.605e-05/0.1194, allocations: 95.27 kB / 365.8 MB, free: 5.324 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1194, allocations: 0 / 365.8 MB, free: 5.324 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002877/0.1197, allocations: 47.84 kB / 365.9 MB, free: 5.277 MB / 302.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.0005613/0.1203, allocations: 0.8011 MB / 366.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003478/0.1206, allocations: 199.8 kB / 366.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1206, allocations: 0 / 366.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.1207, allocations: 76.36 kB / 366.9 MB, free: 4.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.121, allocations: 37.55 kB / 367 MB, free: 4.148 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.1232, allocations: 1.963 MB / 368.9 MB, free: 2.059 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.1235, allocations: 0.7323 MB / 369.7 MB, free: 1.301 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.589e-05/0.1235, allocations: 17.95 kB / 369.7 MB, free: 1.285 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.1237, allocations: 59.41 kB / 369.7 MB, free: 1.23 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1237, allocations: 3.938 kB / 369.7 MB, free: 1.227 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.177/0.3007, allocations: 3.321 MB / 373.1 MB, free: 19.76 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.635/7.936, allocations: 8.391 kB / 373.1 MB, free: 19.76 MB / 302.1 MB (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.0022 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches