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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 111.9 kB / 17.28 MB, free: 6.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 193.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.1 MB / 224 MB, free: 12.45 MB / 190.1 MB 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.001181/0.00118, allocations: 43.94 kB / 280.2 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.103, allocations: 46.62 MB / 326.9 MB, free: 4.719 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00298/0.1061, allocations: 1.562 MB / 328.4 MB, free: 3.141 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006204/0.1067, allocations: 271.2 kB / 328.7 MB, free: 2.875 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.409e-05/0.1068, allocations: 4 kB / 328.7 MB, free: 2.871 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001308/0.107, allocations: 15.88 kB / 328.7 MB, free: 2.855 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.171e-05/0.107, allocations: 11.91 kB / 328.7 MB, free: 2.844 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003846/0.1074, allocations: 95.84 kB / 328.8 MB, free: 2.75 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000301/0.1077, allocations: 263.5 kB / 329.1 MB, free: 2.492 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000279/0.108, allocations: 170.3 kB / 329.2 MB, free: 2.32 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.702e-05/0.1081, allocations: 87.7 kB / 329.3 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001191/0.1082, allocations: 95.59 kB / 329.4 MB, free: 2.141 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.347e-05/0.1083, allocations: 20 kB / 329.4 MB, free: 2.121 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.386e-05/0.1084, allocations: 28 kB / 329.5 MB, free: 2.094 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.112e-05/0.1084, allocations: 63.81 kB / 329.5 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.774e-05/0.1085, allocations: 91.53 kB / 329.6 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002476/0.1088, allocations: 227.6 kB / 329.8 MB, free: 1.719 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1088, allocations: 0 / 329.8 MB, free: 1.719 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.1088, allocations: 0 / 329.8 MB, free: 1.719 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1088, allocations: 0 / 329.8 MB, free: 1.719 MB / 270.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.0006413/0.1095, allocations: 490.4 kB / 330.3 MB, free: 1.184 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.1095, allocations: 8.031 kB / 330.3 MB, free: 1.176 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.249e-05/0.1096, allocations: 62.72 kB / 330.4 MB, free: 1.105 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.719e-05/0.1097, allocations: 24.75 kB / 330.4 MB, free: 1.082 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.1099, allocations: 228 kB / 330.6 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.11, allocations: 24.92 kB / 330.7 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.788e-05/0.11, allocations: 24.38 kB / 330.7 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004006/0.1104, allocations: 244 kB / 330.9 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.1104, allocations: 7.938 kB / 330.9 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.1105, allocations: 4 kB / 330.9 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.1105, allocations: 4 kB / 330.9 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002742/0.1108, allocations: 161.7 kB / 331.1 MB, free: 360 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009428/0.1117, allocations: 0.7014 MB / 331.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002876/0.112, allocations: 174.8 kB / 332 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.1121, allocations: 84.77 kB / 332 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.1122, allocations: 7.938 kB / 332.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000244/0.1124, allocations: 115.3 kB / 332.2 MB, free: 15.19 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.674e-06/0.1124, allocations: 4 kB / 332.2 MB, free: 15.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004061/0.1128, allocations: 213.9 kB / 332.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.1129, allocations: 59.41 kB / 332.4 MB, free: 14.9 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.113, allocations: 145.9 kB / 332.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.1131, allocations: 37.7 kB / 332.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.493e-05/0.1132, allocations: 124.6 kB / 332.7 MB, free: 14.58 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.668e-05/0.1132, allocations: 67.19 kB / 332.8 MB, free: 14.52 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.993e-05/0.1133, allocations: 74 kB / 332.9 MB, free: 14.44 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.1134, allocations: 330.8 kB / 333.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.1135, allocations: 60.62 kB / 333.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.1137, allocations: 128 kB / 333.4 MB, free: 13.9 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002206/0.1139, allocations: 174.6 kB / 333.6 MB, free: 13.7 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1139, allocations: 0 / 333.6 MB, free: 13.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003301/0.1143, allocations: 253.2 kB / 333.8 MB, free: 13.45 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1143, allocations: 7.938 kB / 333.8 MB, free: 13.44 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1143, allocations: 4 kB / 333.8 MB, free: 13.44 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.1143, allocations: 4 kB / 333.8 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.1145, allocations: 31.92 kB / 333.8 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.1145, allocations: 3.938 kB / 333.9 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.906e-05/0.1146, allocations: 23.78 kB / 333.9 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.147e-05/0.1146, allocations: 23.97 kB / 333.9 MB, free: 13.35 MB / 286.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.0001506/0.1148, allocations: 153.9 kB / 334 MB, free: 13.19 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.1148, allocations: 15.81 kB / 334.1 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003902/0.1152, allocations: 198.4 kB / 334.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1152, allocations: 0 / 334.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1152, allocations: 0 / 334.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.1152, allocations: 3.984 kB / 334.3 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007351/0.116, allocations: 0.5724 MB / 334.8 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.116, allocations: 0 / 334.8 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.781e-05/0.1161, allocations: 23.92 kB / 334.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1161, allocations: 0 / 334.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/0.1161, allocations: 4 kB / 334.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.1161, allocations: 0 / 334.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.1161, allocations: 7.875 kB / 334.9 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003139/0.1164, allocations: 279.2 kB / 335.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.825e-05/0.1165, allocations: 96.95 kB / 335.2 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.1165, allocations: 7.984 kB / 335.2 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.286e-05/0.1166, allocations: 8 kB / 335.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.882e-05/0.1167, allocations: 23.91 kB / 335.3 MB, free: 11.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.1168, allocations: 8 kB / 335.3 MB, free: 11.86 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.602e-05/0.1168, allocations: 95.77 kB / 335.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1168, allocations: 0 / 335.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002972/0.1171, allocations: 51.84 kB / 335.4 MB, free: 11.71 MB / 286.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.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,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.0006136/0.1178, allocations: 0.8296 MB / 336.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003702/0.1181, allocations: 195.9 kB / 336.4 MB, free: 10.66 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1181, allocations: 0 / 336.4 MB, free: 10.66 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.1183, allocations: 83.91 kB / 336.5 MB, free: 10.58 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.1186, allocations: 28.36 kB / 336.6 MB, free: 10.55 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002043/0.1206, allocations: 2.063 MB / 338.6 MB, free: 8.367 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.1209, allocations: 0.7362 MB / 339.4 MB, free: 7.605 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.573e-05/0.121, allocations: 29.94 kB / 339.4 MB, free: 7.578 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.1211, allocations: 55.42 kB / 339.4 MB, free: 7.523 MB / 286.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1211, allocations: 0 / 339.4 MB, free: 7.523 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5712/0.6923, allocations: 3.46 MB / 342.9 MB, free: 4.055 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003389/0.6928, allocations: 195.8 kB / 343.1 MB, free: 3.793 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.102/2.794, allocations: 0 / 343.1 MB, free: 3.793 MB / 286.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches