Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001024/0.001024, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.412/1.412, allocations: 205.4 MB / 223.1 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007874/0.0007873, allocations: 97.14 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002853/0.0002853, allocations: 4 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.2222, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09252/0.3147, allocations: 89.46 MB / 465.4 MB, free: 7.172 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002339/0.315, allocations: 87.94 kB / 465.5 MB, free: 7.086 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4164/0.7315, allocations: 156.6 MB / 0.6075 GB, free: 6.734 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.328e-06/0.7315, allocations: 0 / 0.6075 GB, free: 6.734 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002292/0.7318, allocations: 103.8 kB / 0.6076 GB, free: 6.633 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: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.01323/0.745, allocations: 4.343 MB / 0.6118 GB, free: 2.223 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.7451, allocations: 8.031 kB / 0.6118 GB, free: 2.215 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002191/0.7473, allocations: 0.687 MB / 0.6125 GB, free: 1.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008702/0.756, allocations: 1.7 MB / 0.6142 GB, free: 15.81 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006236/0.7623, allocations: 2.695 MB / 0.6168 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004255/0.7627, allocations: 349.2 kB / 0.6171 GB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001328/0.7641, allocations: 440 kB / 0.6175 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.016/0.7801, allocations: 7.542 MB / 0.6249 GB, free: 4.574 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001433/0.7803, allocations: 0 / 0.6249 GB, free: 4.574 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001018/0.7813, allocations: 196 kB / 0.6251 GB, free: 4.383 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000345/0.7816, allocations: 301.3 kB / 0.6254 GB, free: 4.086 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01193/0.7936, allocations: 6.191 MB / 0.6314 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2152/1.009, allocations: 23.25 MB / 0.6541 GB, free: 63.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005704/1.015, allocations: 6.446 MB / 0.6604 GB, free: 60.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01505/1.03, allocations: 10.82 MB / 0.671 GB, free: 59.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/1.03, allocations: 63.8 kB / 0.671 GB, free: 59.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=319): time 4.639e-06/1.03, allocations: 0 / 0.671 GB, free: 59.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=319): time 0.01238/1.042, allocations: 12.98 MB / 0.6837 GB, free: 52.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/1.042, allocations: 83.17 kB / 0.6838 GB, free: 52.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001287/1.044, allocations: 1.063 MB / 0.6848 GB, free: 52.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001934/1.044, allocations: 64.05 kB / 0.6849 GB, free: 52.67 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006574/1.044, allocations: 1.686 MB / 0.6865 GB, free: 51.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006468/1.045, allocations: 1.044 MB / 0.6876 GB, free: 51.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/1.045, allocations: 60.16 kB / 0.6876 GB, free: 51.37 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001985/1.045, allocations: 0.4965 MB / 0.6881 GB, free: 51.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002569/1.048, allocations: 2.203 MB / 0.6903 GB, free: 51.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002753/1.051, allocations: 2.921 MB / 0.6931 GB, free: 50.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00309/1.054, allocations: 2.693 MB / 0.6957 GB, free: 50.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.801e-05/1.054, allocations: 7.406 kB / 0.6958 GB, free: 50.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.007844/1.062, allocations: 6.299 MB / 0.7019 GB, free: 48.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/1.062, allocations: 18.88 kB / 0.7019 GB, free: 48.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.795e-05/1.062, allocations: 19.47 kB / 0.7019 GB, free: 48.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001816/1.064, allocations: 1.423 MB / 0.7033 GB, free: 48.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001721/1.065, allocations: 0.5178 MB / 0.7038 GB, free: 48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003853/1.069, allocations: 5.173 MB / 0.7089 GB, free: 44.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001773/1.071, allocations: 370.2 kB / 0.7092 GB, free: 44.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000242/1.071, allocations: 141.3 kB / 0.7094 GB, free: 44.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * 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 (301): * Single equations (assignments): 239 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 58 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.002398/1.074, allocations: 1.71 MB / 0.711 GB, free: 43.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003477/1.074, allocations: 171.7 kB / 0.7112 GB, free: 43.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006732/1.081, allocations: 5.612 MB / 0.7167 GB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005387/1.086, allocations: 5.165 MB / 0.7217 GB, free: 38.94 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/1.086, allocations: 0 / 0.7217 GB, free: 38.94 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/1.086, allocations: 16.64 kB / 0.7217 GB, free: 38.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01411/1.1, allocations: 11.16 MB / 0.7326 GB, free: 34.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/1.1, allocations: 0 / 0.7326 GB, free: 34.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/1.102, allocations: 274 kB / 0.7329 GB, free: 34.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001682/1.103, allocations: 1.405 MB / 0.7343 GB, free: 33.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002083/1.103, allocations: 59.7 kB / 0.7343 GB, free: 33.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003725/1.107, allocations: 5.139 MB / 0.7394 GB, free: 30.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/1.107, allocations: 3.828 kB / 0.7394 GB, free: 30.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009369/1.117, allocations: 8.557 MB / 0.7477 GB, free: 22.66 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/1.118, allocations: 0.7254 MB / 0.7484 GB, free: 21.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002756/1.118, allocations: 42.91 kB / 0.7485 GB, free: 21.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008667/1.119, allocations: 87.02 kB / 0.7486 GB, free: 21.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004006/1.12, allocations: 243.1 kB / 0.7488 GB, free: 21.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001779/1.12, allocations: 83.67 kB / 0.7489 GB, free: 21.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001056/1.121, allocations: 0.7889 MB / 0.7496 GB, free: 21 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/1.121, allocations: 0 / 0.7496 GB, free: 21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003208/1.124, allocations: 1.076 MB / 0.7507 GB, free: 19.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSensor0.pin_p.reference.gamma) * 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 (174): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 58 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.009451/1.134, allocations: 9.217 MB / 0.7597 GB, free: 11.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006381/1.14, allocations: 5.152 MB / 0.7647 GB, free: 7.391 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/1.14, allocations: 0 / 0.7647 GB, free: 7.391 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002949/1.143, allocations: 2.465 MB / 0.7671 GB, free: 5.285 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/1.145, allocations: 311.2 kB / 0.7674 GB, free: 5.043 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04384/1.188, allocations: 37.46 MB / 0.804 GB, free: 1.918 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1849/1.373, allocations: 3.611 MB / 0.8075 GB, free: 101.4 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001928/1.375, allocations: 0.5959 MB / 0.8081 GB, free: 101.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002203/1.378, allocations: 1.312 MB / 0.8094 GB, free: 101.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.412e-06/1.378, allocations: 7.344 kB / 0.8094 GB, free: 101.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09552/1.473, allocations: 75.77 MB / 0.8834 GB, free: 78.49 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/1.473, allocations: 239.3 kB / 0.8836 GB, free: 78.24 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.061/4.534, allocations: 0 / 0.8836 GB, free: 78.24 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat does not exist to compare? outputFormat=mat