Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors.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.Electrical.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_TestSensors",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.001125/0.001125, allocations: 181.3 kB / 16.39 MB, free: 5.766 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.321/1.321, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009183/0.0009181, allocations: 98.64 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002593/0.0002592, allocations: 8 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2735, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1036/0.3771, allocations: 86.83 MB / 488.4 MB, free: 9.629 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.3774, allocations: 83.89 kB / 488.5 MB, free: 9.547 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2586/0.636, allocations: 32.44 MB / 0.5087 GB, free: 85.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.636, allocations: 0 / 0.5087 GB, free: 85.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001439/0.6362, allocations: 60.8 kB / 0.5088 GB, free: 85.77 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.004808/0.641, allocations: 2.094 MB / 0.5108 GB, free: 84.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.641, allocations: 6.281 kB / 0.5108 GB, free: 84.82 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008354/0.6419, allocations: 336.4 kB / 0.5112 GB, free: 84.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008917/0.6428, allocations: 255.3 kB / 0.5114 GB, free: 84.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002419/0.6452, allocations: 1.257 MB / 0.5126 GB, free: 84.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/0.6453, allocations: 166 kB / 0.5128 GB, free: 84.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003646/0.6457, allocations: 215.8 kB / 0.513 GB, free: 84.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004255/0.65, allocations: 2.754 MB / 0.5157 GB, free: 83.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.222e-05/0.65, allocations: 2.578 kB / 0.5157 GB, free: 83.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002076/0.6502, allocations: 96.22 kB / 0.5158 GB, free: 83.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-05/0.6503, allocations: 56.62 kB / 0.5158 GB, free: 83.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003067/0.6534, allocations: 1.96 MB / 0.5177 GB, free: 83.65 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/0.6637, allocations: 7.712 MB / 0.5253 GB, free: 79.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009177/0.6646, allocations: 1.271 MB / 0.5265 GB, free: 79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.651e-05/0.6647, allocations: 7.594 kB / 0.5265 GB, free: 79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.6647, allocations: 49.73 kB / 0.5266 GB, free: 78.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.535e-06/0.6647, allocations: 0 / 0.5266 GB, free: 78.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.00338/0.6681, allocations: 2.621 MB / 0.5291 GB, free: 77.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.776e-05/0.6682, allocations: 58.31 kB / 0.5292 GB, free: 77.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009013/0.6691, allocations: 0.7143 MB / 0.5299 GB, free: 77.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.471e-05/0.6691, allocations: 37.23 kB / 0.5299 GB, free: 77.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003422/0.6695, allocations: 0.9167 MB / 0.5308 GB, free: 76.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.6696, allocations: 222.3 kB / 0.531 GB, free: 76.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.372e-05/0.6697, allocations: 15.53 kB / 0.531 GB, free: 76.24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.6698, allocations: 390.6 kB / 0.5314 GB, free: 75.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004746/0.6702, allocations: 377.7 kB / 0.5318 GB, free: 75.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005516/0.6708, allocations: 0.5923 MB / 0.5323 GB, free: 75.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005643/0.6714, allocations: 479.9 kB / 0.5328 GB, free: 74.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.6714, allocations: 10.94 kB / 0.5328 GB, free: 74.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001516/0.6729, allocations: 1.152 MB / 0.5339 GB, free: 73.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.673, allocations: 8.438 kB / 0.534 GB, free: 73.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.483e-05/0.673, allocations: 12 kB / 0.534 GB, free: 73.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002332/0.6732, allocations: 83.44 kB / 0.534 GB, free: 73.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006693/0.6739, allocations: 181.7 kB / 0.5342 GB, free: 73.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.6754, allocations: 1.958 MB / 0.5361 GB, free: 71.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005597/0.676, allocations: 49.62 kB / 0.5362 GB, free: 71.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.155e-05/0.676, allocations: 32 kB / 0.5362 GB, free: 71.69 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001057/0.6771, allocations: 0.6445 MB / 0.5368 GB, free: 71.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.6773, allocations: 79.06 kB / 0.5369 GB, free: 71.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001303/0.6786, allocations: 0.9365 MB / 0.5378 GB, free: 70.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.6786, allocations: 8 kB / 0.5378 GB, free: 70.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.6786, allocations: 0 / 0.5378 GB, free: 70.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.6786, allocations: 7.516 kB / 0.5378 GB, free: 70.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004131/0.6828, allocations: 2.661 MB / 0.5404 GB, free: 68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.6828, allocations: 4 kB / 0.5404 GB, free: 67.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004665/0.6833, allocations: 114 kB / 0.5406 GB, free: 67.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001787/0.6835, allocations: 75.84 kB / 0.5406 GB, free: 67.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.427e-05/0.6835, allocations: 15.28 kB / 0.5406 GB, free: 67.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.6848, allocations: 1.921 MB / 0.5425 GB, free: 65.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6848, allocations: 4.031 kB / 0.5425 GB, free: 65.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.6865, allocations: 1.452 MB / 0.5439 GB, free: 64.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003803/0.6869, allocations: 225.8 kB / 0.5442 GB, free: 64.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001155/0.687, allocations: 12 kB / 0.5442 GB, free: 64.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004167/0.6874, allocations: 46.31 kB / 0.5442 GB, free: 64.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.6875, allocations: 48.53 kB / 0.5443 GB, free: 64.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.812e-05/0.6876, allocations: 19.94 kB / 0.5443 GB, free: 64.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005681/0.6881, allocations: 0.5534 MB / 0.5448 GB, free: 63.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6881, allocations: 4 kB / 0.5448 GB, free: 63.81 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00109/0.6892, allocations: 313.8 kB / 0.5451 GB, free: 63.51 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor.inductor[2].i,inductor.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001916/0.6912, allocations: 2.177 MB / 0.5472 GB, free: 61.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.6925, allocations: 1.066 MB / 0.5483 GB, free: 60.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.6925, allocations: 4.375 kB / 0.5483 GB, free: 60.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000684/0.6932, allocations: 0.6015 MB / 0.5489 GB, free: 59.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000812/0.694, allocations: 199.3 kB / 0.5491 GB, free: 59.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/0.7048, allocations: 12.54 MB / 0.5613 GB, free: 47.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/0.706, allocations: 1.752 MB / 0.563 GB, free: 45.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005676/0.7066, allocations: 202.8 kB / 0.5632 GB, free: 45.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006539/0.7072, allocations: 0.6399 MB / 0.5638 GB, free: 44.64 MB / 378.7 MB Notification: Performance of SimCode: time 1.022e-06/0.7072, allocations: 0 / 0.5638 GB, free: 44.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03615/0.7434, allocations: 22.16 MB / 0.5855 GB, free: 22.96 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001294/0.7436, allocations: 201.3 kB / 0.5857 GB, free: 22.72 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.374/3.118, allocations: 0 / 0.5857 GB, free: 22.72 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_TestSensors_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_TestSensors.fmu > Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TestSensors_res.mat does not exist to compare? outputFormat=mat