Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.00151/0.00151, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.24/2.24, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001507/0.001507, allocations: 82.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.459e-05/3.478e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09682/0.09689, allocations: 47.57 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4365/0.5334, allocations: 89.36 MB / 458.6 MB, free: 3.914 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002992/0.5337, allocations: 86.23 kB / 458.6 MB, free: 3.871 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7604/1.294, allocations: 156.4 MB / 0.6006 GB, free: 83.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.736e-06/1.294, allocations: 0 / 0.6006 GB, free: 83.22 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002195/1.294, allocations: 99.88 kB / 0.6007 GB, free: 83.12 MB / 410.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.01833/1.313, allocations: 4.222 MB / 0.6048 GB, free: 78.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/1.313, allocations: 8.031 kB / 0.6048 GB, free: 78.87 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002141/1.315, allocations: 0.6821 MB / 0.6055 GB, free: 78.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01355/1.329, allocations: 1.684 MB / 0.6071 GB, free: 76.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007767/1.336, allocations: 2.683 MB / 0.6098 GB, free: 73.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000564/1.337, allocations: 347.7 kB / 0.6101 GB, free: 73.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001878/1.339, allocations: 447.1 kB / 0.6105 GB, free: 73.01 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02219/1.361, allocations: 7.479 MB / 0.6178 GB, free: 65.36 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000223/1.361, allocations: 0 / 0.6178 GB, free: 65.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001736/1.363, allocations: 195.2 kB / 0.618 GB, free: 65.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003925/1.364, allocations: 301.4 kB / 0.6183 GB, free: 64.87 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01729/1.381, allocations: 6.09 MB / 0.6242 GB, free: 58.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05705/1.438, allocations: 23.25 MB / 0.647 GB, free: 35.42 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/1.449, allocations: 6.427 MB / 0.6532 GB, free: 28.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007403/1.456, allocations: 3.281 MB / 0.6564 GB, free: 25.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.027/1.483, allocations: 10.82 MB / 0.667 GB, free: 14.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.826e-05/1.483, allocations: 60.52 kB / 0.6671 GB, free: 14.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=319): time 7.504e-06/1.483, allocations: 0 / 0.6671 GB, free: 14.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=319): time 0.01193/1.495, allocations: 5.162 MB / 0.6721 GB, free: 9.012 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/1.495, allocations: 73.41 kB / 0.6722 GB, free: 8.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00212/1.497, allocations: 1.06 MB / 0.6732 GB, free: 7.848 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006194/1.498, allocations: 57.7 kB / 0.6733 GB, free: 7.785 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009311/1.499, allocations: 1.706 MB / 0.6749 GB, free: 6.066 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001558/1.5, allocations: 1.051 MB / 0.6759 GB, free: 5.023 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003537/1.501, allocations: 56 kB / 0.676 GB, free: 4.969 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002823/1.501, allocations: 462.3 kB / 0.6764 GB, free: 4.508 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00489/1.506, allocations: 2.185 MB / 0.6786 GB, free: 2.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2961/1.802, allocations: 2.886 MB / 0.6814 GB, free: 80.83 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007505/1.81, allocations: 2.686 MB / 0.684 GB, free: 80.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.295e-05/1.81, allocations: 6.422 kB / 0.684 GB, free: 80.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01727/1.827, allocations: 6.204 MB / 0.6901 GB, free: 80.63 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.098e-05/1.827, allocations: 14.19 kB / 0.6901 GB, free: 80.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-05/1.827, allocations: 21.81 kB / 0.6901 GB, free: 80.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003866/1.831, allocations: 1.41 MB / 0.6915 GB, free: 80.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004353/1.836, allocations: 0.5137 MB / 0.692 GB, free: 80.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008192/1.844, allocations: 5.16 MB / 0.697 GB, free: 78.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003714/1.848, allocations: 377.8 kB / 0.6974 GB, free: 78.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001028/1.849, allocations: 140.6 kB / 0.6975 GB, free: 78.48 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 () * 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.000929/1.85, allocations: 260.7 kB / 0.6978 GB, free: 78.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006808/1.85, allocations: 172.8 kB / 0.6979 GB, free: 78.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01407/1.864, allocations: 5.59 MB / 0.7034 GB, free: 78.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01153/1.876, allocations: 5.131 MB / 0.7084 GB, free: 77.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.546e-05/1.876, allocations: 0 / 0.7084 GB, free: 77.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.825e-05/1.876, allocations: 16.69 kB / 0.7084 GB, free: 77.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02581/1.902, allocations: 11.11 MB / 0.7193 GB, free: 75.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.212e-05/1.902, allocations: 1.859 kB / 0.7193 GB, free: 75.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00258/1.905, allocations: 284.3 kB / 0.7195 GB, free: 75.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003573/1.908, allocations: 1.385 MB / 0.7209 GB, free: 75.33 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007097/1.909, allocations: 68.97 kB / 0.721 GB, free: 75.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007285/1.916, allocations: 5.124 MB / 0.726 GB, free: 71.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/1.916, allocations: 7.203 kB / 0.726 GB, free: 71.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01914/1.935, allocations: 8.513 MB / 0.7343 GB, free: 68.26 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002465/1.938, allocations: 0.7296 MB / 0.735 GB, free: 67.87 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006244/1.939, allocations: 40.5 kB / 0.735 GB, free: 67.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001772/1.94, allocations: 86.06 kB / 0.7351 GB, free: 67.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008573/1.941, allocations: 236.4 kB / 0.7354 GB, free: 67.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003067/1.942, allocations: 82.06 kB / 0.7354 GB, free: 67.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001541/1.943, allocations: 0.7811 MB / 0.7362 GB, free: 67.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.8e-07/1.943, allocations: 0 / 0.7362 GB, free: 67.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004369/1.947, allocations: 1.076 MB / 0.7372 GB, free: 67.19 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 () * 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.01954/1.967, allocations: 9.178 MB / 0.7462 GB, free: 62.92 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01203/1.979, allocations: 5.106 MB / 0.7512 GB, free: 59.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.979, allocations: 4.125 kB / 0.7512 GB, free: 59.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00558/1.985, allocations: 2.449 MB / 0.7536 GB, free: 57.13 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002786/1.988, allocations: 312.1 kB / 0.7539 GB, free: 56.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02315/2.011, allocations: 9.482 MB / 0.7631 GB, free: 48.74 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003484/2.014, allocations: 3.244 MB / 0.7663 GB, free: 46.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00274/2.017, allocations: 1.339 MB / 0.7676 GB, free: 44.91 MB / 410.7 MB Notification: Performance of SimCode: time 3.176e-06/2.017, allocations: 0 / 0.7676 GB, free: 44.91 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.942/5.959, allocations: 167.4 MB / 0.9311 GB, free: 77.81 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat does not exist to compare? outputFormat=mat