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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008905/0.0008905, allocations: 181.4 kB / 17.41 MB, free: 4.285 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.422/1.422, allocations: 205.4 MB / 223.6 MB, free: 9.008 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.0009691/0.0009691, allocations: 96.67 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002715/0.0002715, allocations: 15.98 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2073, allocations: 47.58 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.13/0.3374, allocations: 116 MB / 491.7 MB, free: 12.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/0.3377, allocations: 99.94 kB / 491.8 MB, free: 12.45 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3453/0.6829, allocations: 76.83 MB / 0.5553 GB, free: 61.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.683, allocations: 0 / 0.5553 GB, free: 61.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003108/0.6833, allocations: 83.86 kB / 0.5554 GB, free: 61.84 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: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.01009/0.6934, allocations: 3.517 MB / 0.5588 GB, free: 58.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.6935, allocations: 12.03 kB / 0.5589 GB, free: 58.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002974/0.6964, allocations: 0.6054 MB / 0.5594 GB, free: 57.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005724/0.7022, allocations: 2.555 MB / 0.5619 GB, free: 55.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002044/0.7024, allocations: 234.6 kB / 0.5622 GB, free: 54.78 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00103/0.7035, allocations: 308.4 kB / 0.5625 GB, free: 54.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008956/0.7124, allocations: 4.149 MB / 0.5665 GB, free: 50.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001511/0.7126, allocations: 11.84 kB / 0.5665 GB, free: 50.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007363/0.7134, allocations: 128 kB / 0.5666 GB, free: 50.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001229/0.7135, allocations: 146.1 kB / 0.5668 GB, free: 49.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007032/0.7206, allocations: 3.354 MB / 0.5701 GB, free: 46.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02232/0.7429, allocations: 13.84 MB / 0.5836 GB, free: 32.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004688/0.7477, allocations: 5.933 MB / 0.5894 GB, free: 25.65 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001946/0.7496, allocations: 1.366 MB / 0.5907 GB, free: 24.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00577/0.7554, allocations: 3.213 MB / 0.5938 GB, free: 21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.7555, allocations: 51.86 kB / 0.5939 GB, free: 20.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=138): time 3.927e-06/0.7555, allocations: 0 / 0.5939 GB, free: 20.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=142): time 0.01227/0.7678, allocations: 6.696 MB / 0.6004 GB, free: 14.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.7679, allocations: 90.42 kB / 0.6005 GB, free: 13.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003078/0.7709, allocations: 1.915 MB / 0.6024 GB, free: 11.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001687/0.7711, allocations: 49.7 kB / 0.6024 GB, free: 11.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007122/0.7719, allocations: 1.459 MB / 0.6039 GB, free: 10.46 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003617/0.7722, allocations: 489 kB / 0.6043 GB, free: 9.977 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.7723, allocations: 32 kB / 0.6044 GB, free: 9.945 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.7725, allocations: 377.8 kB / 0.6047 GB, free: 9.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001139/0.7736, allocations: 0.7457 MB / 0.6054 GB, free: 8.828 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001318/0.7749, allocations: 1.277 MB / 0.6067 GB, free: 7.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002299/0.7772, allocations: 2.12 MB / 0.6088 GB, free: 4.973 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.838e-06/0.7773, allocations: 4 kB / 0.6088 GB, free: 4.969 MB / 378.7 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.003978/0.7813, allocations: 2.714 MB / 0.6114 GB, free: 2.215 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002766/0.7816, allocations: 0.5701 MB / 0.612 GB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.7816, allocations: 16 kB / 0.612 GB, free: 1.402 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/0.7827, allocations: 0.5117 MB / 0.6125 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.784, allocations: 375.4 kB / 0.6128 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007934/0.792, allocations: 7.264 MB / 0.6199 GB, free: 8.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001926/0.7939, allocations: 95.83 kB / 0.62 GB, free: 8.746 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001831/0.7941, allocations: 76 kB / 0.6201 GB, free: 8.672 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.7942, allocations: 4 kB / 0.6201 GB, free: 8.668 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004203/0.7984, allocations: 2.492 MB / 0.6225 GB, free: 6.145 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.25e-05/0.7984, allocations: 16 kB / 0.6226 GB, free: 6.129 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.7996, allocations: 0.5191 MB / 0.6231 GB, free: 5.598 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/0.801, allocations: 367.4 kB / 0.6234 GB, free: 5.238 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007889/0.8089, allocations: 7.272 MB / 0.6305 GB, free: 13.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00201/0.8109, allocations: 83.94 kB / 0.6306 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003572/0.8113, allocations: 71.94 kB / 0.6307 GB, free: 13.41 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (188): * Single equations (assignments): 184 * 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.002621/0.814, allocations: 1.076 MB / 0.6317 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007209/0.8147, allocations: 209.4 kB / 0.6319 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004306/0.819, allocations: 2.486 MB / 0.6343 GB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/0.8191, allocations: 12 kB / 0.6343 GB, free: 9.555 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.8191, allocations: 7.938 kB / 0.6344 GB, free: 9.547 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.43e-05/0.8191, allocations: 11.97 kB / 0.6344 GB, free: 9.535 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009218/0.8283, allocations: 5.421 MB / 0.6397 GB, free: 3.957 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.8284, allocations: 4.062 kB / 0.6397 GB, free: 3.953 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007923/0.8292, allocations: 179.8 kB / 0.6398 GB, free: 3.777 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001569/0.8307, allocations: 0.6562 MB / 0.6405 GB, free: 3.105 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.8309, allocations: 28 kB / 0.6405 GB, free: 3.078 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2405/1.071, allocations: 11.29 MB / 0.6515 GB, free: 85.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/1.071, allocations: 7.781 kB / 0.6515 GB, free: 85.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004924/1.076, allocations: 3.614 MB / 0.6551 GB, free: 85.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/1.078, allocations: 472.3 kB / 0.6555 GB, free: 85.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002392/1.078, allocations: 30.38 kB / 0.6555 GB, free: 85.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009498/1.079, allocations: 81.06 kB / 0.6556 GB, free: 85.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003162/1.079, allocations: 119 kB / 0.6557 GB, free: 85.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.258e-05/1.079, allocations: 39.28 kB / 0.6558 GB, free: 85.11 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001931/1.081, allocations: 1.305 MB / 0.657 GB, free: 84.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.01e-07/1.081, allocations: 3.562 kB / 0.6571 GB, free: 84.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003505/1.085, allocations: 1.116 MB / 0.6581 GB, free: 84.96 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 86 * 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.0007039/1.085, allocations: 457.9 kB / 0.6586 GB, free: 84.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005771/1.091, allocations: 4.181 MB / 0.6627 GB, free: 83.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/1.091, allocations: 0 / 0.6627 GB, free: 83.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002415/1.094, allocations: 1.791 MB / 0.6644 GB, free: 83.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003662/1.097, allocations: 0.6143 MB / 0.665 GB, free: 83.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/1.108, allocations: 7.067 MB / 0.6719 GB, free: 80.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002357/1.111, allocations: 2.283 MB / 0.6741 GB, free: 79.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007689/1.112, allocations: 142.2 kB / 0.6743 GB, free: 79.57 MB / 410.7 MB Notification: Performance of SimCode: time 9.92e-07/1.112, allocations: 3.219 kB / 0.6743 GB, free: 79.57 MB / 410.7 MB Notification: Performance of Templates: time 0.1196/1.231, allocations: 112.6 MB / 0.7842 GB, free: 9.133 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches