Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 221.3 MB / 235.5 MB, free: 2.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008139/0.0008141, allocations: 92.03 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.716e-05/2.718e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 50.41 MB / 394.3 MB, free: 1.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3303/0.4418, allocations: 76.9 MB / 471.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/0.442, allocations: 63.97 kB / 471.3 MB, free: 10.53 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004078/0.4461, allocations: 1.508 MB / 472.8 MB, free: 9.027 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.4462, allocations: 0 / 472.8 MB, free: 9.027 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.4462, allocations: 4 kB / 472.8 MB, free: 9.023 MB / 346.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.000382/0.4466, allocations: 375 kB / 473.2 MB, free: 8.613 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.4466, allocations: 12.03 kB / 473.2 MB, free: 8.602 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.912e-05/0.4467, allocations: 49 kB / 473.2 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.998e-05/0.4467, allocations: 7.906 kB / 473.2 MB, free: 8.539 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.4468, allocations: 167 kB / 473.4 MB, free: 8.336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.402e-05/0.4469, allocations: 4 kB / 473.4 MB, free: 8.332 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.4469, allocations: 8 kB / 473.4 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.4471, allocations: 101.9 kB / 473.5 MB, free: 8.203 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.4471, allocations: 4 kB / 473.5 MB, free: 8.199 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.4471, allocations: 0 / 473.5 MB, free: 8.199 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.4471, allocations: 3.953 kB / 473.5 MB, free: 8.195 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.45e-05/0.4472, allocations: 31.94 kB / 473.6 MB, free: 8.164 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006641/0.4479, allocations: 0.6381 MB / 474.2 MB, free: 7.461 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001213/0.448, allocations: 113 kB / 474.3 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.457e-05/0.4481, allocations: 36.36 kB / 474.3 MB, free: 7.254 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.4481, allocations: 4 kB / 474.3 MB, free: 7.25 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.4482, allocations: 42.5 kB / 474.4 MB, free: 7.199 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.4482, allocations: 0 / 474.4 MB, free: 7.199 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002751/0.4485, allocations: 73.53 kB / 474.5 MB, free: 7.121 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.37e-05/0.4485, allocations: 162.3 kB / 474.6 MB, free: 6.926 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.895e-05/0.4486, allocations: 110.6 kB / 474.7 MB, free: 6.812 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.4487, allocations: 29.7 kB / 474.7 MB, free: 6.777 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.604e-05/0.4487, allocations: 99.95 kB / 474.8 MB, free: 6.676 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.223e-05/0.4488, allocations: 19.75 kB / 474.9 MB, free: 6.656 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-06/0.4488, allocations: 0 / 474.9 MB, free: 6.656 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.4489, allocations: 322.8 kB / 475.2 MB, free: 6.332 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.55e-05/0.4489, allocations: 8 kB / 475.2 MB, free: 6.324 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.673e-05/0.449, allocations: 40.3 kB / 475.2 MB, free: 6.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.417e-05/0.449, allocations: 15.94 kB / 475.2 MB, free: 6.254 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.449, allocations: 3.953 kB / 475.2 MB, free: 6.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001236/0.4491, allocations: 81.61 kB / 475.3 MB, free: 6.164 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.4492, allocations: 4 kB / 475.3 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.4492, allocations: 4 kB / 475.3 MB, free: 6.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.4492, allocations: 0 / 475.3 MB, free: 6.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.4493, allocations: 15.94 kB / 475.4 MB, free: 6.141 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.4493, allocations: 4.859 kB / 475.4 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.485e-05/0.4494, allocations: 8 kB / 475.4 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.4494, allocations: 8 kB / 475.4 MB, free: 6.121 MB / 346.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 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete 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 6.171e-05/0.4495, allocations: 105 kB / 475.5 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.771e-05/0.4496, allocations: 11.86 kB / 475.5 MB, free: 6 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.338e-05/0.4496, allocations: 15.64 kB / 475.5 MB, free: 5.984 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.4496, allocations: 0 / 475.5 MB, free: 5.984 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.4496, allocations: 7.938 kB / 475.5 MB, free: 5.977 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.4496, allocations: 0 / 475.5 MB, free: 5.977 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003401/0.45, allocations: 181.8 kB / 475.7 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.45, allocations: 4 kB / 475.7 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.789e-05/0.4501, allocations: 27.88 kB / 475.7 MB, free: 5.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.4501, allocations: 4 kB / 475.7 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.4501, allocations: 0 / 475.7 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.4501, allocations: 3.984 kB / 475.7 MB, free: 5.711 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.4501, allocations: 4 kB / 475.7 MB, free: 5.707 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.4504, allocations: 0.5033 MB / 476.2 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.78e-05/0.4505, allocations: 89.03 kB / 476.3 MB, free: 5.055 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.4505, allocations: 3.938 kB / 476.3 MB, free: 5.051 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.4507, allocations: 12 kB / 476.3 MB, free: 5.039 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.006e-05/0.4508, allocations: 15.94 kB / 476.4 MB, free: 5.023 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.4508, allocations: 4 kB / 476.4 MB, free: 5.02 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.345e-05/0.4508, allocations: 92.36 kB / 476.4 MB, free: 4.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4508, allocations: 0 / 476.4 MB, free: 4.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003277/0.4512, allocations: 12 kB / 476.5 MB, free: 4.918 MB / 346.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 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete 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.0006565/0.4518, allocations: 1.316 MB / 477.8 MB, free: 3.559 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001137/0.452, allocations: 35.94 kB / 477.8 MB, free: 3.523 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.452, allocations: 4 kB / 477.8 MB, free: 3.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.832e-05/0.452, allocations: 23.92 kB / 477.8 MB, free: 3.496 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.4523, allocations: 4 kB / 477.8 MB, free: 3.492 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005347/0.4528, allocations: 162.5 kB / 478 MB, free: 3.285 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.4531, allocations: 0.6965 MB / 478.7 MB, free: 2.562 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.656e-05/0.4532, allocations: 4 kB / 478.7 MB, free: 2.559 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.686e-05/0.4532, allocations: 19.42 kB / 478.7 MB, free: 2.539 MB / 346.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4532, allocations: 0 / 478.7 MB, free: 2.539 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01157/0.4648, allocations: 1.333 MB / 480 MB, free: 1.297 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001605/0.465, allocations: 148.9 kB / 480.2 MB, free: 1.062 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.503/1.968, allocations: 0 / 480.2 MB, free: 1.062 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat