Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001057/0.001057, allocations: 197.6 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008485/0.0008485, allocations: 96.56 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.679e-05/1.682e-05, allocations: 4 kB / 343.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09595/0.09598, allocations: 51.48 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4147/0.5108, allocations: 77.75 MB / 473 MB, free: 13.65 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/0.511, allocations: 62.45 kB / 473.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007912/0.519, allocations: 2.813 MB / 475.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.519, allocations: 0 / 475.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.402e-05/0.519, allocations: 8 kB / 475.9 MB, free: 11.97 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0005728/0.5196, allocations: 489.8 kB / 476.4 MB, free: 11.49 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.5196, allocations: 8.594 kB / 476.4 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.5198, allocations: 34.95 kB / 476.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002185/0.52, allocations: 227.6 kB / 476.6 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.5201, allocations: 11.5 kB / 476.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.5201, allocations: 11.61 kB / 476.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001936/0.5203, allocations: 100.7 kB / 476.7 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002211/0.5205, allocations: 169.8 kB / 476.9 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.5205, allocations: 0 / 476.9 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.5206, allocations: 0 / 476.9 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.5206, allocations: 9.406 kB / 476.9 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008963/0.5215, allocations: 0.7509 MB / 477.7 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001998/0.5217, allocations: 133.5 kB / 477.8 MB, free: 10.24 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.651e-05/0.5218, allocations: 57.73 kB / 477.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.952e-05/0.5218, allocations: 9.219 kB / 477.9 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001691/0.522, allocations: 135.1 kB / 478 MB, free: 10.08 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.522, allocations: 0 / 478 MB, free: 10.08 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002902/0.5223, allocations: 157.2 kB / 478.2 MB, free: 9.965 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.918e-05/0.5224, allocations: 82.33 kB / 478.2 MB, free: 9.867 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.5225, allocations: 164.2 kB / 478.4 MB, free: 9.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.5225, allocations: 33.7 kB / 478.4 MB, free: 9.691 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.989e-05/0.5226, allocations: 137.6 kB / 478.6 MB, free: 9.582 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.835e-05/0.5226, allocations: 41.53 kB / 478.6 MB, free: 9.551 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.668e-06/0.5226, allocations: 2.719 kB / 478.6 MB, free: 9.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.537e-05/0.5227, allocations: 330.1 kB / 478.9 MB, free: 9.234 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.594e-05/0.5228, allocations: 53.64 kB / 479 MB, free: 9.203 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.797e-05/0.5229, allocations: 104.9 kB / 479.1 MB, free: 9.105 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001024/0.523, allocations: 66.64 kB / 479.1 MB, free: 9.066 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.523, allocations: 4.062 kB / 479.2 MB, free: 9.062 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002557/0.5232, allocations: 204.3 kB / 479.4 MB, free: 8.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.5233, allocations: 8 kB / 479.4 MB, free: 8.902 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.5233, allocations: 0 / 479.4 MB, free: 8.902 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.5233, allocations: 7.125 kB / 479.4 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.5235, allocations: 41.8 kB / 479.4 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.5235, allocations: 4 kB / 479.4 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.5236, allocations: 30.23 kB / 479.4 MB, free: 8.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.5237, allocations: 9.453 kB / 479.4 MB, free: 8.832 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.786e-05/0.5238, allocations: 113.6 kB / 479.6 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002087/0.524, allocations: 160.7 kB / 479.7 MB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.125e-05/0.524, allocations: 15.81 kB / 479.7 MB, free: 8.582 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002968/0.5243, allocations: 185.3 kB / 479.9 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.5243, allocations: 0 / 479.9 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.5243, allocations: 0 / 479.9 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.5243, allocations: 9.969 kB / 479.9 MB, free: 8.457 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001921/0.5245, allocations: 232.8 kB / 480.2 MB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.5245, allocations: 0 / 480.2 MB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.5247, allocations: 23.84 kB / 480.2 MB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.5247, allocations: 1.359 kB / 480.2 MB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.5247, allocations: 0 / 480.2 MB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.5247, allocations: 4 kB / 480.2 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.5247, allocations: 1.5 kB / 480.2 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002348/0.525, allocations: 210.9 kB / 480.4 MB, free: 8.043 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.345e-05/0.525, allocations: 94.69 kB / 480.5 MB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/0.525, allocations: 3.984 kB / 480.5 MB, free: 7.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.5252, allocations: 26.83 kB / 480.5 MB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.109e-05/0.5252, allocations: 21.41 kB / 480.5 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.5253, allocations: 5.594 kB / 480.5 MB, free: 7.898 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.323e-05/0.5253, allocations: 127.9 kB / 480.7 MB, free: 7.797 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5254, allocations: 0 / 480.7 MB, free: 7.797 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002715/0.5256, allocations: 32 kB / 480.7 MB, free: 7.766 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0004483/0.5261, allocations: 0.8204 MB / 481.5 MB, free: 6.965 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002086/0.5263, allocations: 140.6 kB / 481.6 MB, free: 6.875 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.5263, allocations: 0 / 481.6 MB, free: 6.875 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.508e-05/0.5264, allocations: 67.7 kB / 481.7 MB, free: 6.832 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.5267, allocations: 41.62 kB / 481.8 MB, free: 6.809 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005596/0.5273, allocations: 299.8 kB / 482 MB, free: 6.535 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001399/0.5274, allocations: 0.7359 MB / 482.8 MB, free: 5.797 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001051/0.5275, allocations: 39.39 kB / 482.8 MB, free: 5.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.396e-05/0.5276, allocations: 63.19 kB / 482.9 MB, free: 5.754 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5276, allocations: 0 / 482.9 MB, free: 5.754 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02094/0.5486, allocations: 3.182 MB / 486.1 MB, free: 2.922 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/0.5488, allocations: 126.2 kB / 486.2 MB, free: 2.727 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.744/2.293, allocations: 0 / 486.2 MB, free: 2.727 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat