Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002187/0.002195, allocations: 188.8 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.246/2.246, allocations: 205.4 MB / 222.5 MB, free: 13.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001172/0.001172, allocations: 98.84 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005437/0.0005438, allocations: 16 kB / 327 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1056, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002471/0.1081, allocations: 1.279 MB / 375.9 MB, free: 14.04 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.1092, allocations: 440.3 kB / 376.3 MB, free: 13.61 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.823e-05/0.1093, allocations: 4 kB / 376.3 MB, free: 13.6 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.972e-05/0.1093, allocations: 7.922 kB / 376.3 MB, free: 13.59 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.1095, allocations: 7.922 kB / 376.4 MB, free: 13.59 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001513/0.1096, allocations: 15.98 kB / 376.4 MB, free: 13.57 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001135/0.1097, allocations: 39.95 kB / 376.4 MB, free: 13.53 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001877/0.1099, allocations: 43.83 kB / 376.5 MB, free: 13.49 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.1101, allocations: 23.91 kB / 376.5 MB, free: 13.46 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.513e-05/0.1102, allocations: 19.86 kB / 376.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.1102, allocations: 7.938 kB / 376.5 MB, free: 13.44 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.672e-05/0.1103, allocations: 0 / 376.5 MB, free: 13.44 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.738e-05/0.1103, allocations: 7.938 kB / 376.5 MB, free: 13.43 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.824e-05/0.1103, allocations: 33.64 kB / 376.5 MB, free: 13.39 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000113/0.1105, allocations: 51.89 kB / 376.6 MB, free: 13.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.1105, allocations: 4 kB / 376.6 MB, free: 13.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1105, allocations: 0 / 376.6 MB, free: 13.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1105, allocations: 0 / 376.6 MB, free: 13.34 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000649/0.1112, allocations: 367.4 kB / 377 MB, free: 12.93 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.1112, allocations: 12.03 kB / 377 MB, free: 12.92 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.837e-05/0.1113, allocations: 34.56 kB / 377 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.783e-05/0.1113, allocations: 7.906 kB / 377 MB, free: 12.87 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001678/0.1115, allocations: 178.9 kB / 377.2 MB, free: 12.65 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.1116, allocations: 7.953 kB / 377.2 MB, free: 12.64 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.404e-05/0.1116, allocations: 8 kB / 377.2 MB, free: 12.64 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003554/0.112, allocations: 117.9 kB / 377.3 MB, free: 12.5 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.112, allocations: 4 kB / 377.3 MB, free: 12.5 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.112, allocations: 0 / 377.3 MB, free: 12.5 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.112, allocations: 4 kB / 377.3 MB, free: 12.49 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000343/0.1124, allocations: 67.89 kB / 377.4 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009319/0.1133, allocations: 0.6381 MB / 378 MB, free: 11.72 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.1136, allocations: 120.9 kB / 378.1 MB, free: 11.56 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.1137, allocations: 8.188 kB / 378.2 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.1137, allocations: 38.5 kB / 378.2 MB, free: 11.5 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 4.779e-06/0.1138, allocations: 0 / 378.2 MB, free: 11.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007239/0.1145, allocations: 137.5 kB / 378.3 MB, free: 11.36 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.1146, allocations: 154.2 kB / 378.5 MB, free: 11.18 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.1148, allocations: 130.5 kB / 378.6 MB, free: 11.04 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.1148, allocations: 33.7 kB / 378.6 MB, free: 11 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.921e-05/0.1149, allocations: 166.4 kB / 378.8 MB, free: 10.84 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.042e-05/0.115, allocations: 11.81 kB / 378.8 MB, free: 10.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-06/0.115, allocations: 0 / 378.8 MB, free: 10.82 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.1151, allocations: 318.8 kB / 379.1 MB, free: 10.5 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.1153, allocations: 35.92 kB / 379.2 MB, free: 10.47 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.1155, allocations: 52.28 kB / 379.2 MB, free: 10.4 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001632/0.1157, allocations: 31.98 kB / 379.2 MB, free: 10.37 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1157, allocations: 0 / 379.2 MB, free: 10.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000414/0.1161, allocations: 105.7 kB / 379.3 MB, free: 10.26 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.1162, allocations: 8 kB / 379.4 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.1162, allocations: 7.984 kB / 379.4 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.1162, allocations: 0 / 379.4 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.1164, allocations: 12 kB / 379.4 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.1164, allocations: 3.938 kB / 379.4 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.1165, allocations: 15.94 kB / 379.4 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.1166, allocations: 4 kB / 379.4 MB, free: 10.21 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000137/0.1167, allocations: 121.8 kB / 379.5 MB, free: 10.08 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.1168, allocations: 7.906 kB / 379.5 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.529e-05/0.1169, allocations: 19.45 kB / 379.5 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.1169, allocations: 4 kB / 379.5 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.1169, allocations: 0 / 379.5 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.117, allocations: 4 kB / 379.5 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005441/0.1175, allocations: 189.5 kB / 379.7 MB, free: 9.812 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1175, allocations: 0 / 379.7 MB, free: 9.812 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.1177, allocations: 15.98 kB / 379.7 MB, free: 9.797 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.1177, allocations: 4 kB / 379.8 MB, free: 9.793 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.1177, allocations: 4 kB / 379.8 MB, free: 9.789 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.728e-06/0.1177, allocations: 7.938 kB / 379.8 MB, free: 9.781 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.1177, allocations: 0 / 379.8 MB, free: 9.781 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006413/0.1184, allocations: 0.5345 MB / 380.3 MB, free: 9.203 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.577e-05/0.1185, allocations: 96.97 kB / 380.4 MB, free: 9.09 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.522e-05/0.1185, allocations: 4.172 kB / 380.4 MB, free: 9.086 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003332/0.1189, allocations: 12 kB / 380.4 MB, free: 9.074 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.776e-05/0.1189, allocations: 7.984 kB / 380.4 MB, free: 9.066 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.119, allocations: 4 kB / 380.4 MB, free: 9.062 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.076e-05/0.1191, allocations: 99.31 kB / 380.5 MB, free: 8.965 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1191, allocations: 0 / 380.5 MB, free: 8.965 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005352/0.1196, allocations: 12 kB / 380.5 MB, free: 8.953 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001165/0.1208, allocations: 1.339 MB / 381.9 MB, free: 7.57 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003928/0.1212, allocations: 71.89 kB / 381.9 MB, free: 7.5 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.1212, allocations: 3.938 kB / 381.9 MB, free: 7.496 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.1214, allocations: 40.48 kB / 382 MB, free: 7.457 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004252/0.1219, allocations: 7.953 kB / 382 MB, free: 7.449 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.1229, allocations: 303.2 kB / 382.3 MB, free: 7.098 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.1233, allocations: 0.6926 MB / 383 MB, free: 6.379 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.035e-05/0.1234, allocations: 23.42 kB / 383 MB, free: 6.355 MB / 282.7 MB Notification: Performance of SimCode: time 1.142e-06/0.1234, allocations: 0 / 383 MB, free: 6.355 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.631/2.755, allocations: 1.203 MB / 384.2 MB, free: 5.152 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat