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.00155/0.00155, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.979/1.979, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001155/0.001154, allocations: 96.41 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004059/0.000406, allocations: 8 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3399, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1478/0.4877, allocations: 89.47 MB / 464.1 MB, free: 7.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003311/0.4881, allocations: 87.95 kB / 464.2 MB, free: 7.094 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7508/1.239, allocations: 156.6 MB / 0.6062 GB, free: 6.695 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.589e-06/1.239, allocations: 4 kB / 0.6062 GB, free: 6.691 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002341/1.239, allocations: 99.88 kB / 0.6063 GB, free: 6.594 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.02017/1.259, allocations: 4.339 MB / 0.6106 GB, free: 2.188 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/1.259, allocations: 8.031 kB / 0.6106 GB, free: 2.18 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00306/1.263, allocations: 0.6909 MB / 0.6112 GB, free: 1.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01472/1.277, allocations: 1.7 MB / 0.6129 GB, free: 15.77 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008894/1.286, allocations: 2.691 MB / 0.6155 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007319/1.287, allocations: 353.2 kB / 0.6159 GB, free: 12.69 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002221/1.289, allocations: 444 kB / 0.6163 GB, free: 12.25 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0273/1.317, allocations: 7.542 MB / 0.6237 GB, free: 4.531 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002549/1.317, allocations: 4 kB / 0.6237 GB, free: 4.527 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002079/1.319, allocations: 192 kB / 0.6238 GB, free: 4.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005897/1.32, allocations: 305.3 kB / 0.6241 GB, free: 4.039 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02114/1.341, allocations: 6.191 MB / 0.6302 GB, free: 13.83 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3721/1.713, allocations: 23.25 MB / 0.6529 GB, free: 63.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01151/1.725, allocations: 6.444 MB / 0.6592 GB, free: 61.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02935/1.754, allocations: 10.81 MB / 0.6697 GB, free: 59.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.549e-05/1.754, allocations: 59.83 kB / 0.6698 GB, free: 59.78 MB / 410.7 MB Notification: Performance of pre-optimization done (n=319): time 7.274e-06/1.754, allocations: 3.969 kB / 0.6698 GB, free: 59.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=319): time 0.02644/1.78, allocations: 12.99 MB / 0.6825 GB, free: 53.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/1.781, allocations: 74.5 kB / 0.6826 GB, free: 53.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002265/1.783, allocations: 1.07 MB / 0.6836 GB, free: 53.24 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006642/1.784, allocations: 61.36 kB / 0.6837 GB, free: 53.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001048/1.785, allocations: 1.699 MB / 0.6853 GB, free: 52.42 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001757/1.786, allocations: 1.047 MB / 0.6863 GB, free: 51.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005179/1.787, allocations: 60.22 kB / 0.6864 GB, free: 51.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003833/1.787, allocations: 459.1 kB / 0.6868 GB, free: 51.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005613/1.793, allocations: 2.207 MB / 0.689 GB, free: 51.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006381/1.799, allocations: 2.912 MB / 0.6918 GB, free: 50.78 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006507/1.806, allocations: 2.703 MB / 0.6945 GB, free: 50.74 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.562e-05/1.806, allocations: 3.781 kB / 0.6945 GB, free: 50.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01622/1.822, allocations: 6.255 MB / 0.7006 GB, free: 48.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.442e-05/1.822, allocations: 12.5 kB / 0.7006 GB, free: 48.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.935e-05/1.822, allocations: 19 kB / 0.7006 GB, free: 48.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003816/1.826, allocations: 1.432 MB / 0.702 GB, free: 48.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003999/1.83, allocations: 0.5105 MB / 0.7025 GB, free: 48.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007614/1.838, allocations: 5.18 MB / 0.7076 GB, free: 45.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003412/1.842, allocations: 377.5 kB / 0.7079 GB, free: 44.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008324/1.842, allocations: 138.3 kB / 0.7081 GB, free: 44.8 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.004935/1.847, allocations: 1.704 MB / 0.7097 GB, free: 44.01 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007422/1.848, allocations: 168.2 kB / 0.7099 GB, free: 43.92 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0155/1.864, allocations: 5.628 MB / 0.7154 GB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0136/1.877, allocations: 5.163 MB / 0.7204 GB, free: 39.34 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.808e-05/1.877, allocations: 2.438 kB / 0.7204 GB, free: 39.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-05/1.877, allocations: 11.77 kB / 0.7204 GB, free: 39.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0286/1.906, allocations: 11.16 MB / 0.7313 GB, free: 34.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.276e-05/1.906, allocations: 3.609 kB / 0.7313 GB, free: 34.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002575/1.909, allocations: 275.8 kB / 0.7316 GB, free: 34.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003742/1.912, allocations: 1.408 MB / 0.733 GB, free: 34.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006833/1.913, allocations: 67.03 kB / 0.733 GB, free: 33.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007367/1.921, allocations: 5.132 MB / 0.7381 GB, free: 30.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/1.921, allocations: 0 / 0.7381 GB, free: 30.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01967/1.94, allocations: 8.548 MB / 0.7464 GB, free: 23.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002334/1.943, allocations: 0.7365 MB / 0.7471 GB, free: 22.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007503/1.944, allocations: 43.78 kB / 0.7472 GB, free: 22.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002016/1.946, allocations: 87.3 kB / 0.7472 GB, free: 22.52 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001103/1.947, allocations: 237.6 kB / 0.7475 GB, free: 22.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003877/1.947, allocations: 85.45 kB / 0.7476 GB, free: 22.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001575/1.949, allocations: 0.7862 MB / 0.7483 GB, free: 21.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.949, allocations: 0 / 0.7483 GB, free: 21.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004355/1.953, allocations: 1.077 MB / 0.7494 GB, free: 20.56 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.02077/1.974, allocations: 9.203 MB / 0.7584 GB, free: 12.44 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01339/1.987, allocations: 5.157 MB / 0.7634 GB, free: 8.023 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/1.987, allocations: 1.875 kB / 0.7634 GB, free: 8.023 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006924/1.994, allocations: 2.467 MB / 0.7658 GB, free: 5.914 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003321/1.998, allocations: 318.5 kB / 0.7661 GB, free: 5.676 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06962/2.067, allocations: 37.24 MB / 0.8025 GB, free: 2.684 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006507/2.074, allocations: 3.244 MB / 0.8057 GB, free: 96 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3065/2.381, allocations: 1.59 MB / 0.8072 GB, free: 102 MB / 442.7 MB Notification: Performance of SimCode: time 1.193e-06/2.381, allocations: 2.938 kB / 0.8072 GB, free: 102 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.974/6.355, allocations: 166.4 MB / 0.9697 GB, free: 105.9 MB / 458.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