Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.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.UnsymmetricalLoad,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad",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.001497/0.001497, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.965/1.965, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 91.33 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.817e-05/2.816e-05, allocations: 3.984 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3291, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1412/0.4703, allocations: 88.69 MB / 451.1 MB, free: 13.49 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/0.4707, allocations: 87.8 kB / 451.2 MB, free: 13.41 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9787/1.449, allocations: 216 MB / 0.6516 GB, free: 4.398 MB / 411.1 MB Notification: Performance of FrontEnd: time 2.655e-06/1.449, allocations: 0 / 0.6516 GB, free: 4.398 MB / 411.1 MB Notification: Performance of Transformations before backend: time 0.0003833/1.45, allocations: 139.9 kB / 0.6517 GB, free: 4.262 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1888 * Number of variables: 1888 Notification: Performance of Generate backend data structure: time 0.325/1.775, allocations: 6.168 MB / 0.6577 GB, free: 48.74 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/1.775, allocations: 11.41 kB / 0.6577 GB, free: 48.74 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03063/1.805, allocations: 3.508 MB / 0.6612 GB, free: 48.41 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01259/1.818, allocations: 3.942 MB / 0.665 GB, free: 48.1 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006707/1.819, allocations: 218.3 kB / 0.6652 GB, free: 48.1 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002908/1.822, allocations: 385.6 kB / 0.6656 GB, free: 48.1 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02421/1.846, allocations: 8.554 MB / 0.6739 GB, free: 48.06 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03224/1.878, allocations: 9.689 MB / 0.6834 GB, free: 47.38 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003229/1.879, allocations: 13.69 kB / 0.6834 GB, free: 47.38 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001984/1.881, allocations: 3.906 kB / 0.6834 GB, free: 47.38 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007615/1.881, allocations: 466.5 kB / 0.6839 GB, free: 47.36 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08496/1.966, allocations: 32.48 MB / 0.7156 GB, free: 42.5 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01904/1.985, allocations: 13.32 MB / 0.7286 GB, free: 32.11 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009986/1.996, allocations: 4.668 MB / 0.7332 GB, free: 30.16 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03904/2.035, allocations: 15.19 MB / 0.748 GB, free: 22.45 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.724e-05/2.035, allocations: 72.44 kB / 0.7481 GB, free: 22.38 MB / 411.1 MB Notification: Performance of pre-optimization done (n=480): time 8.406e-06/2.035, allocations: 0 / 0.7481 GB, free: 22.38 MB / 411.1 MB Notification: Performance of matching and sorting (n=480): time 0.02095/2.056, allocations: 8.177 MB / 0.756 GB, free: 19.17 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/2.056, allocations: 114.5 kB / 0.7562 GB, free: 19.07 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003031/2.059, allocations: 1.453 MB / 0.7576 GB, free: 18.48 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009481/2.06, allocations: 32.08 kB / 0.7576 GB, free: 18.45 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001423/2.061, allocations: 2.405 MB / 0.76 GB, free: 16.58 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002342/2.064, allocations: 1.54 MB / 0.7615 GB, free: 15.36 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006524/2.064, allocations: 0 / 0.7615 GB, free: 15.36 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.000448/2.065, allocations: 0.5258 MB / 0.762 GB, free: 14.95 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006669/2.071, allocations: 3.038 MB / 0.7649 GB, free: 12.97 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007835/2.079, allocations: 4.063 MB / 0.7689 GB, free: 8.953 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01251/2.092, allocations: 4.466 MB / 0.7733 GB, free: 5.344 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.352e-05/2.092, allocations: 8 kB / 0.7733 GB, free: 5.336 MB / 411.1 MB Notification: Performance of matching and sorting (n=674) (initialization): time 0.0303/2.122, allocations: 9.819 MB / 0.7829 GB, free: 13.52 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.022e-05/2.122, allocations: 17.25 kB / 0.7829 GB, free: 13.51 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001073/2.123, allocations: 32 kB / 0.7829 GB, free: 13.48 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008142/2.131, allocations: 2.681 MB / 0.7855 GB, free: 11.21 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006645/2.137, allocations: 0.7661 MB / 0.7863 GB, free: 10.62 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0167/2.154, allocations: 9.831 MB / 0.7959 GB, free: 1.344 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005613/2.16, allocations: 439.4 kB / 0.7963 GB, free: 0.9492 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001435/2.161, allocations: 211.4 kB / 0.7965 GB, free: 0.7617 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: currentSensor1.y[1].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor1.y[1].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor1.y[2].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor1.y[3].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor1.y[3].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor1.y[2].re:VARIABLE() "Real part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star1_1.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star1_1.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star1_1.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star1_1.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star1_1.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star1_1.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star1_2.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star1_2.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star1_2.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star1_2.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star1_2.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star1_2.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star2_2.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2_2.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star2_2.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2_2.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] resistor2_2.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real resistor2_2.i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: currentSensor2.y[1].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor2.y[1].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor2.y[2].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor2.y[2].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor2.y[3].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor2.y[3].re:VARIABLE() "Real part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star2_1.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star2_1.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2_1.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star2_1.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2_1.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2_1.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 132 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (432): * Single equations (assignments): 374 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 6 {6 9,6 9,6 51,6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.001892/2.163, allocations: 298.6 kB / 0.7968 GB, free: 0.5586 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02937/2.193, allocations: 8.48 MB / 0.8051 GB, free: 10.24 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001685/2.194, allocations: 260.5 kB / 0.8053 GB, free: 9.984 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02682/2.221, allocations: 8.87 MB / 0.814 GB, free: 2.551 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000279/2.221, allocations: 141.4 kB / 0.8141 GB, free: 2.434 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.279e-05/2.221, allocations: 7.844 kB / 0.8141 GB, free: 2.43 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.887e-05/2.222, allocations: 15.33 kB / 0.8141 GB, free: 2.43 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3436/2.565, allocations: 6.286 MB / 0.8203 GB, free: 78.35 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.242e-05/2.565, allocations: 3.594 kB / 0.8203 GB, free: 78.35 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004149/2.569, allocations: 441.1 kB / 0.8207 GB, free: 78.35 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007015/2.577, allocations: 2.635 MB / 0.8233 GB, free: 78.29 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009753/2.578, allocations: 58.08 kB / 0.8233 GB, free: 78.29 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01297/2.591, allocations: 9.76 MB / 0.8329 GB, free: 73.92 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/2.591, allocations: 3.375 kB / 0.8329 GB, free: 73.92 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03284/2.623, allocations: 13.05 MB / 0.8456 GB, free: 73.49 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001116/2.625, allocations: 430.3 kB / 0.846 GB, free: 73.29 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001421/2.626, allocations: 2.562 kB / 0.846 GB, free: 73.29 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00338/2.629, allocations: 86.73 kB / 0.8461 GB, free: 73.29 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00141/2.631, allocations: 368.6 kB / 0.8464 GB, free: 73.29 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005746/2.631, allocations: 126.4 kB / 0.8466 GB, free: 73.29 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.002106/2.634, allocations: 1.033 MB / 0.8476 GB, free: 73.18 MB / 443.1 MB Notification: Performance of sort global known variables: time 5.01e-07/2.634, allocations: 0 / 0.8476 GB, free: 73.18 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.007484/2.641, allocations: 1.448 MB / 0.849 GB, free: 72.99 MB / 443.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (resistor2_1.pin_p.reference.gamma,currentSensorN.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (251): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 6 {6 9,6 9,6 51,6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.03318/2.674, allocations: 13.74 MB / 0.8624 GB, free: 71.82 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.01803/2.692, allocations: 7.39 MB / 0.8696 GB, free: 71.6 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/2.692, allocations: 0 / 0.8696 GB, free: 71.6 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009889/2.702, allocations: 3.732 MB / 0.8733 GB, free: 71.44 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004768/2.707, allocations: 376.2 kB / 0.8736 GB, free: 71.43 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03849/2.746, allocations: 13.24 MB / 0.8866 GB, free: 68.34 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008383/2.754, allocations: 4.294 MB / 0.8908 GB, free: 66.75 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00548/2.76, allocations: 2.142 MB / 0.8928 GB, free: 64.95 MB / 443.1 MB Notification: Performance of SimCode: time 3.828e-06/2.76, allocations: 0 / 0.8928 GB, free: 64.95 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.965/7.725, allocations: 334.4 MB / 1.219 GB, free: 93.69 MB / 475.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad_res.mat does not exist to compare? outputFormat=mat