Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",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.002542/0.002541, allocations: 181 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.119/2.119, 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.001187/0.001187, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.055e-05/3.074e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1239, allocations: 47.57 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5298/0.6537, allocations: 115.6 MB / 484.8 MB, free: 10.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0007732/0.6546, allocations: 85.52 kB / 484.9 MB, free: 10.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6138/1.268, allocations: 76.97 MB / 0.5487 GB, free: 91.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.164e-06/1.269, allocations: 0 / 0.5487 GB, free: 91.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000403/1.269, allocations: 87.66 kB / 0.5488 GB, free: 91.82 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: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.01409/1.283, allocations: 3.2 MB / 0.5519 GB, free: 90.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/1.283, allocations: 9.781 kB / 0.5519 GB, free: 90.55 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001902/1.285, allocations: 444.2 kB / 0.5523 GB, free: 90.49 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004859/1.29, allocations: 0.6028 MB / 0.5529 GB, free: 90.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01222/1.302, allocations: 3.132 MB / 0.556 GB, free: 89.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003736/1.303, allocations: 234.4 kB / 0.5562 GB, free: 89.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001482/1.304, allocations: 309.6 kB / 0.5565 GB, free: 89.74 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01303/1.317, allocations: 4.056 MB / 0.5604 GB, free: 89.24 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001423/1.317, allocations: 3.906 kB / 0.5604 GB, free: 89.24 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007408/1.318, allocations: 130.5 kB / 0.5606 GB, free: 89.24 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001835/1.318, allocations: 143.3 kB / 0.5607 GB, free: 89.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01043/1.329, allocations: 3.266 MB / 0.5639 GB, free: 89.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03554/1.364, allocations: 13.82 MB / 0.5774 GB, free: 81.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007948/1.372, allocations: 5.851 MB / 0.5831 GB, free: 76.42 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003373/1.376, allocations: 1.328 MB / 0.5844 GB, free: 75.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009244/1.385, allocations: 3.183 MB / 0.5875 GB, free: 74.22 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.555e-05/1.385, allocations: 50.34 kB / 0.5876 GB, free: 74.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 4.248e-06/1.385, allocations: 2.969 kB / 0.5876 GB, free: 74.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.01151/1.397, allocations: 4.535 MB / 0.592 GB, free: 71.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/1.397, allocations: 92.94 kB / 0.5921 GB, free: 71.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003971/1.401, allocations: 1.676 MB / 0.5937 GB, free: 71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003521/1.401, allocations: 48.23 kB / 0.5938 GB, free: 70.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001039/1.402, allocations: 1.385 MB / 0.5951 GB, free: 69.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006549/1.403, allocations: 483.4 kB / 0.5956 GB, free: 69.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/1.403, allocations: 35.53 kB / 0.5956 GB, free: 69.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/1.403, allocations: 383.1 kB / 0.596 GB, free: 69.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001765/1.405, allocations: 0.7082 MB / 0.5967 GB, free: 68.81 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002135/1.407, allocations: 1.246 MB / 0.5979 GB, free: 67.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002289/1.41, allocations: 0.9134 MB / 0.5988 GB, free: 67.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-05/1.41, allocations: 3.344 kB / 0.5988 GB, free: 67.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006586/1.416, allocations: 2.542 MB / 0.6013 GB, free: 66.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001343/1.418, allocations: 6.353 MB / 0.6075 GB, free: 59.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.813e-05/1.418, allocations: 21.7 kB / 0.6075 GB, free: 59.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002057/1.42, allocations: 0.511 MB / 0.608 GB, free: 59.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002789/1.423, allocations: 368.9 kB / 0.6083 GB, free: 59.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01032/1.433, allocations: 7.25 MB / 0.6154 GB, free: 53.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002981/1.436, allocations: 94.75 kB / 0.6155 GB, free: 53.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004095/1.437, allocations: 71.66 kB / 0.6156 GB, free: 53.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/1.437, allocations: 3.969 kB / 0.6156 GB, free: 53.83 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006287/1.443, allocations: 2.473 MB / 0.618 GB, free: 52.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-05/1.443, allocations: 16.34 kB / 0.618 GB, free: 52.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001805/1.445, allocations: 0.5086 MB / 0.6185 GB, free: 52.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002913/1.448, allocations: 362.4 kB / 0.6189 GB, free: 52.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/1.458, allocations: 7.307 MB / 0.626 GB, free: 45.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/1.46, allocations: 89.62 kB / 0.6261 GB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001721/1.46, allocations: 68 kB / 0.6261 GB, free: 45.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005009/1.46, allocations: 223.7 kB / 0.6264 GB, free: 45.01 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006547/1.461, allocations: 209.5 kB / 0.6266 GB, free: 44.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005754/1.467, allocations: 2.429 MB / 0.6289 GB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.782e-05/1.467, allocations: 15.95 kB / 0.6289 GB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/1.467, allocations: 11.25 kB / 0.629 GB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.439e-05/1.467, allocations: 6.656 kB / 0.629 GB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01219/1.479, allocations: 5.279 MB / 0.6341 GB, free: 38.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/1.479, allocations: 4.25 kB / 0.6341 GB, free: 38.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001492/1.481, allocations: 187.6 kB / 0.6343 GB, free: 38.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002395/1.483, allocations: 0.6534 MB / 0.6349 GB, free: 37.47 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001512/1.483, allocations: 31.52 kB / 0.635 GB, free: 37.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01452/1.498, allocations: 11.28 MB / 0.646 GB, free: 26.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/1.498, allocations: 4.031 kB / 0.646 GB, free: 26.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007539/1.506, allocations: 3.655 MB / 0.6496 GB, free: 22.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001703/1.507, allocations: 474.9 kB / 0.65 GB, free: 22.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005168/1.508, allocations: 31.94 kB / 0.65 GB, free: 22.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001927/1.51, allocations: 81.8 kB / 0.6501 GB, free: 22.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004839/1.51, allocations: 118.2 kB / 0.6502 GB, free: 22.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/1.51, allocations: 39.84 kB / 0.6503 GB, free: 22.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002781/1.513, allocations: 1.28 MB / 0.6515 GB, free: 21.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.71e-07/1.513, allocations: 0 / 0.6515 GB, free: 21.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00588/1.519, allocations: 1.105 MB / 0.6526 GB, free: 19.92 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.008709/1.528, allocations: 5.109 MB / 0.6576 GB, free: 15.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008182/1.536, allocations: 4.075 MB / 0.6616 GB, free: 11.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/1.536, allocations: 0 / 0.6616 GB, free: 11.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003569/1.54, allocations: 1.742 MB / 0.6633 GB, free: 9.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004473/1.544, allocations: 0.605 MB / 0.6639 GB, free: 9.098 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01515/1.559, allocations: 5.487 MB / 0.6692 GB, free: 4.254 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002322/1.562, allocations: 2.338 MB / 0.6715 GB, free: 2.414 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00224/1.564, allocations: 1.16 MB / 0.6726 GB, free: 1.34 MB / 410.7 MB Notification: Performance of SimCode: time 1.323e-06/1.564, allocations: 0 / 0.6726 GB, free: 1.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.559/6.123, allocations: 122.5 MB / 0.7923 GB, free: 36.84 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat