Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BusUsage.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.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007813/0.0007813, allocations: 94.11 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00099/0.0009902, allocations: 196.5 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002497/0.0002497, allocations: 4 kB / 306.8 MB, free: 1.484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.107, allocations: 51.49 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001716/0.1088, allocations: 1.303 MB / 359.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006505/0.1095, allocations: 443.2 kB / 360 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.218e-05/0.1095, allocations: 4 kB / 360 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.488e-05/0.1095, allocations: 7.922 kB / 360 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.49e-05/0.1096, allocations: 7.922 kB / 360 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001422/0.1098, allocations: 19.98 kB / 360.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.024e-05/0.1099, allocations: 59.78 kB / 360.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.11, allocations: 43.88 kB / 360.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.1102, allocations: 27.86 kB / 360.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.879e-05/0.1102, allocations: 15.92 kB / 360.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.1103, allocations: 3.938 kB / 360.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.058e-05/0.1103, allocations: 8 kB / 360.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.581e-05/0.1103, allocations: 11.92 kB / 360.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.113e-05/0.1104, allocations: 37.64 kB / 360.3 MB, free: 12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.071e-05/0.1105, allocations: 47.89 kB / 360.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1105, allocations: 0 / 360.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1105, allocations: 4 kB / 360.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.1105, allocations: 3.938 kB / 360.3 MB, free: 11.94 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000466/0.111, allocations: 367.4 kB / 360.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.111, allocations: 16.02 kB / 360.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.58e-05/0.1111, allocations: 34.56 kB / 360.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.1112, allocations: 23.89 kB / 360.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.1113, allocations: 174.9 kB / 360.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.1114, allocations: 4 kB / 360.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.483e-05/0.1114, allocations: 15.89 kB / 360.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002098/0.1116, allocations: 117.6 kB / 361.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.1116, allocations: 0 / 361.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.1116, allocations: 3.984 kB / 361.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1116, allocations: 4 kB / 361.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001625/0.1118, allocations: 63.91 kB / 361.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005872/0.1124, allocations: 0.6458 MB / 361.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001632/0.1126, allocations: 116.9 kB / 361.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.1127, allocations: 60.45 kB / 362 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.1127, allocations: 3.938 kB / 362 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.1127, allocations: 46.56 kB / 362 MB, free: 10.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.153e-06/0.1128, allocations: 0 / 362 MB, free: 10.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004131/0.1132, allocations: 133.6 kB / 362.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.184e-05/0.1133, allocations: 166.2 kB / 362.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.693e-05/0.1134, allocations: 121.7 kB / 362.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.1134, allocations: 29.7 kB / 362.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.218e-05/0.1134, allocations: 96.42 kB / 362.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.436e-05/0.1135, allocations: 23.8 kB / 362.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-06/0.1135, allocations: 0 / 362.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1136, allocations: 314.8 kB / 362.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.334e-05/0.1137, allocations: 19.98 kB / 362.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.116e-05/0.1138, allocations: 64.27 kB / 362.9 MB, free: 8.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.54e-05/0.1139, allocations: 27.98 kB / 363 MB, free: 8.953 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1139, allocations: 4 kB / 363 MB, free: 8.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002113/0.1141, allocations: 105.5 kB / 363.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.1141, allocations: 4 kB / 363.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.1141, allocations: 4.156 kB / 363.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.1142, allocations: 4 kB / 363.1 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.516e-05/0.1143, allocations: 15.98 kB / 363.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.1143, allocations: 3.938 kB / 363.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.613e-05/0.1144, allocations: 15.86 kB / 363.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.1144, allocations: 7.984 kB / 363.1 MB, free: 8.785 MB / 302.1 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 8.881e-05/0.1145, allocations: 121.7 kB / 363.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.487e-05/0.1146, allocations: 8 kB / 363.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.933e-05/0.1146, allocations: 15.48 kB / 363.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1146, allocations: 0 / 363.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1146, allocations: 0 / 363.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1146, allocations: 4 kB / 363.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000361/0.115, allocations: 193.5 kB / 363.5 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.115, allocations: 0 / 363.5 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.519e-05/0.1151, allocations: 15.98 kB / 363.5 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1151, allocations: 0 / 363.5 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.1151, allocations: 8 kB / 363.5 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.1151, allocations: 7.938 kB / 363.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1151, allocations: 0 / 363.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003452/0.1155, allocations: 0.4927 MB / 364 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.587e-05/0.1155, allocations: 89.02 kB / 364.1 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.511e-05/0.1155, allocations: 0 / 364.1 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.1157, allocations: 11.94 kB / 364.1 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.125e-05/0.1158, allocations: 15.92 kB / 364.1 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.1158, allocations: 4.188 kB / 364.1 MB, free: 7.711 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.561e-05/0.1158, allocations: 95.27 kB / 364.2 MB, free: 7.617 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1159, allocations: 0 / 364.2 MB, free: 7.617 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003675/0.1162, allocations: 11.95 kB / 364.2 MB, free: 7.605 MB / 302.1 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.0006113/0.1168, allocations: 1.022 MB / 365.2 MB, free: 6.551 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001991/0.1171, allocations: 75.89 kB / 365.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1171, allocations: 0 / 365.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.1172, allocations: 40.42 kB / 365.4 MB, free: 6.438 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004914/0.1177, allocations: 7.984 kB / 365.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006427/0.1183, allocations: 259.7 kB / 365.6 MB, free: 6.125 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.1186, allocations: 0.6887 MB / 366.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.79e-05/0.1187, allocations: 11.89 kB / 366.3 MB, free: 5.398 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.751e-05/0.1187, allocations: 15.44 kB / 366.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1187, allocations: 4 kB / 366.3 MB, free: 5.379 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01036/0.1291, allocations: 1.353 MB / 367.7 MB, free: 4.133 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/0.1293, allocations: 165.1 kB / 367.8 MB, free: 3.891 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.756/1.885, allocations: 0 / 367.8 MB, free: 3.891 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat