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.00113/0.00113, allocations: 94.8 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001402, allocations: 205.4 kB / 17.89 MB, free: 5.586 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.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002255/0.0002257, allocations: 4 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.131, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002245/0.1333, allocations: 1.295 MB / 359.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007219/0.1341, allocations: 447.2 kB / 359.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.796e-05/0.1341, allocations: 0 / 359.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.16e-05/0.1341, allocations: 3.984 kB / 359.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.418e-05/0.1342, allocations: 15.92 kB / 359.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001257/0.1344, allocations: 11.98 kB / 359.9 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.458e-05/0.1344, allocations: 39.89 kB / 360 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.1346, allocations: 51.88 kB / 360 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.1347, allocations: 35.78 kB / 360.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.357e-05/0.1348, allocations: 15.92 kB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.1348, allocations: 4 kB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.725e-05/0.1348, allocations: 7.938 kB / 360.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.818e-06/0.1349, allocations: 0 / 360.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.934e-05/0.1349, allocations: 37.64 kB / 360.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.964e-05/0.135, allocations: 39.89 kB / 360.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.135, allocations: 4 kB / 360.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.135, allocations: 0 / 360.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.135, allocations: 4 kB / 360.2 MB, free: 11.76 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.0004407/0.1354, allocations: 375.4 kB / 360.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.1355, allocations: 12.03 kB / 360.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.484e-05/0.1356, allocations: 38.55 kB / 360.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.1357, allocations: 15.91 kB / 360.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.1358, allocations: 174.9 kB / 360.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/0.1359, allocations: 11.94 kB / 360.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.1359, allocations: 11.95 kB / 360.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002273/0.1361, allocations: 114 kB / 360.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.1361, allocations: 0 / 360.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.1362, allocations: 4 kB / 360.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.1362, allocations: 4 kB / 360.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001865/0.1364, allocations: 63.89 kB / 361 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006032/0.137, allocations: 0.6497 MB / 361.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001823/0.1372, allocations: 117 kB / 361.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.1372, allocations: 8.125 kB / 361.8 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.1372, allocations: 34.5 kB / 361.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.223e-06/0.1372, allocations: 0 / 361.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004635/0.1377, allocations: 141.6 kB / 361.9 MB, free: 9.762 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.168e-05/0.1378, allocations: 158.2 kB / 362.1 MB, free: 9.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.506e-05/0.1379, allocations: 122.2 kB / 362.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.1379, allocations: 25.7 kB / 362.2 MB, free: 9.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.288e-05/0.138, allocations: 112 kB / 362.3 MB, free: 9.297 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.922e-05/0.138, allocations: 7.812 kB / 362.4 MB, free: 9.289 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-06/0.138, allocations: 4 kB / 362.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1381, allocations: 318.8 kB / 362.7 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.998e-05/0.1382, allocations: 27.97 kB / 362.7 MB, free: 8.938 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.1383, allocations: 60.28 kB / 362.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.204e-05/0.1384, allocations: 31.98 kB / 362.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/0.1384, allocations: 4 kB / 362.8 MB, free: 8.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002251/0.1387, allocations: 101.5 kB / 362.9 MB, free: 8.723 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1387, allocations: 8.156 kB / 362.9 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1387, allocations: 3.938 kB / 362.9 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.1387, allocations: 4 kB / 362.9 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.1389, allocations: 15.98 kB / 362.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.1389, allocations: 0 / 362.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.823e-05/0.1389, allocations: 15.89 kB / 362.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.886e-06/0.139, allocations: 4 kB / 362.9 MB, free: 8.672 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.931e-05/0.1391, allocations: 133.7 kB / 363.1 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.287e-05/0.1391, allocations: 4 kB / 363.1 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.283e-05/0.1392, allocations: 15.47 kB / 363.1 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.1392, allocations: 4 kB / 363.1 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.1392, allocations: 0 / 363.1 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.1392, allocations: 0 / 363.1 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003945/0.1396, allocations: 193.4 kB / 363.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1396, allocations: 4 kB / 363.3 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.627e-05/0.1397, allocations: 11.98 kB / 363.3 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.1397, allocations: 8 kB / 363.3 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.1397, allocations: 0 / 363.3 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.1397, allocations: 4 kB / 363.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.1397, allocations: 3.938 kB / 363.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004172/0.1402, allocations: 0.5307 MB / 363.8 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.343e-05/0.1402, allocations: 85.02 kB / 363.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.1402, allocations: 7.953 kB / 363.9 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002114/0.1404, allocations: 11.98 kB / 363.9 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.152e-05/0.1405, allocations: 11.98 kB / 364 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.1405, allocations: 3.938 kB / 364 MB, free: 7.527 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.983e-05/0.1406, allocations: 95.64 kB / 364.1 MB, free: 7.434 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1406, allocations: 4 kB / 364.1 MB, free: 7.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003806/0.141, allocations: 8 kB / 364.1 MB, free: 7.422 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.0008375/0.1418, allocations: 1.351 MB / 365.4 MB, free: 6.023 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002188/0.142, allocations: 67.91 kB / 365.5 MB, free: 5.957 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1421, allocations: 0 / 365.5 MB, free: 5.957 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.1422, allocations: 44.47 kB / 365.5 MB, free: 5.914 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.1425, allocations: 15.89 kB / 365.5 MB, free: 5.898 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006872/0.1432, allocations: 251.6 kB / 365.8 MB, free: 5.602 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.1434, allocations: 0.7003 MB / 366.5 MB, free: 4.875 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.748e-05/0.1435, allocations: 7.984 kB / 366.5 MB, free: 4.867 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.398e-05/0.1435, allocations: 15.44 kB / 366.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1435, allocations: 0 / 366.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01103/0.1546, allocations: 1.325 MB / 367.8 MB, free: 3.625 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001826/0.1548, allocations: 163.6 kB / 368 MB, free: 3.383 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/1.892, allocations: 4.062 kB / 368 MB, free: 3.379 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