Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009245/0.0009245, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.3 MB / 214.4 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007861/0.0007861, allocations: 82.7 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.361e-05/1.356e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08935/0.08937, allocations: 47.58 MB / 363.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3237/0.4131, allocations: 115.2 MB / 478.3 MB, free: 13.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.4135, allocations: 88.95 kB / 478.3 MB, free: 13.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3789/0.7924, allocations: 75.95 MB / 0.5413 GB, free: 89.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.7925, allocations: 3.828 kB / 0.5413 GB, free: 89.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002272/0.7927, allocations: 81.41 kB / 0.5414 GB, free: 89.6 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.008211/0.8009, allocations: 3.196 MB / 0.5445 GB, free: 88.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.801, allocations: 11.91 kB / 0.5445 GB, free: 88.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003014/0.804, allocations: 0.5892 MB / 0.5451 GB, free: 88.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007176/0.8112, allocations: 3.137 MB / 0.5482 GB, free: 87.71 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/0.8113, allocations: 100.7 kB / 0.5483 GB, free: 87.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004154/0.8117, allocations: 181.5 kB / 0.5484 GB, free: 87.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004892/0.8166, allocations: 3.07 MB / 0.5514 GB, free: 87.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004746/0.8214, allocations: 3.609 MB / 0.5549 GB, free: 87.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.317e-05/0.8215, allocations: 7.469 kB / 0.555 GB, free: 87.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002332/0.8217, allocations: 7.094 kB / 0.555 GB, free: 87.22 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.412e-05/0.8218, allocations: 142.1 kB / 0.5551 GB, free: 87.21 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01521/0.837, allocations: 13.2 MB / 0.568 GB, free: 83.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003633/0.8407, allocations: 5.79 MB / 0.5736 GB, free: 79.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/0.8421, allocations: 1.267 MB / 0.5749 GB, free: 78.81 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005027/0.8472, allocations: 3.088 MB / 0.5779 GB, free: 77.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.8472, allocations: 47.09 kB / 0.5779 GB, free: 77.15 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 3.497e-06/0.8472, allocations: 0 / 0.5779 GB, free: 77.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.006723/0.854, allocations: 4.501 MB / 0.5823 GB, free: 74.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.854, allocations: 102 kB / 0.5824 GB, free: 74.78 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/0.8559, allocations: 1.396 MB / 0.5838 GB, free: 74.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.34e-05/0.856, allocations: 29.64 kB / 0.5838 GB, free: 74.17 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006837/0.8567, allocations: 1.456 MB / 0.5852 GB, free: 73.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002696/0.857, allocations: 465.4 kB / 0.5857 GB, free: 72.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-05/0.857, allocations: 0 / 0.5857 GB, free: 72.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.42e-05/0.8571, allocations: 376.9 kB / 0.5861 GB, free: 72.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000813/0.858, allocations: 0.6831 MB / 0.5867 GB, free: 72.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009536/0.8589, allocations: 1.198 MB / 0.5879 GB, free: 71.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001301/0.8602, allocations: 0.9495 MB / 0.5888 GB, free: 70.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.8603, allocations: 3.656 kB / 0.5888 GB, free: 70.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.003495/0.8638, allocations: 2.554 MB / 0.5913 GB, free: 69.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001312/0.8651, allocations: 6.54 MB / 0.5977 GB, free: 62.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.8651, allocations: 14.25 kB / 0.5977 GB, free: 62.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001064/0.8662, allocations: 0.5011 MB / 0.5982 GB, free: 62.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.8675, allocations: 374.8 kB / 0.5986 GB, free: 62.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005404/0.8729, allocations: 6.986 MB / 0.6054 GB, free: 57.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/0.8746, allocations: 59.77 kB / 0.6054 GB, free: 57.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/0.8747, allocations: 73.47 kB / 0.6055 GB, free: 57.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.8748, allocations: 3.844 kB / 0.6055 GB, free: 57.26 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003201/0.878, allocations: 2.326 MB / 0.6078 GB, free: 56.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.878, allocations: 21.53 kB / 0.6078 GB, free: 56.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008939/0.8789, allocations: 0.5064 MB / 0.6083 GB, free: 56.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.8802, allocations: 364.3 kB / 0.6086 GB, free: 56.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005494/0.8857, allocations: 6.988 MB / 0.6155 GB, free: 50.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.8872, allocations: 58.55 kB / 0.6155 GB, free: 50.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.8874, allocations: 73.17 kB / 0.6156 GB, free: 50.81 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.0003535/0.8877, allocations: 156.2 kB / 0.6157 GB, free: 50.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002439/0.888, allocations: 191.8 kB / 0.6159 GB, free: 50.56 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003329/0.8913, allocations: 2.357 MB / 0.6182 GB, free: 49.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/0.8913, allocations: 23.05 kB / 0.6183 GB, free: 49.47 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.8914, allocations: 7.469 kB / 0.6183 GB, free: 49.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.625e-05/0.8914, allocations: 7.641 kB / 0.6183 GB, free: 49.47 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006563/0.898, allocations: 4.812 MB / 0.623 GB, free: 47.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/0.898, allocations: 6.359 kB / 0.623 GB, free: 47.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007461/0.8987, allocations: 174.6 kB / 0.6231 GB, free: 47.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.9, allocations: 0.641 MB / 0.6238 GB, free: 47 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.012e-05/0.9001, allocations: 15.42 kB / 0.6238 GB, free: 47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008185/0.9083, allocations: 10.88 MB / 0.6344 GB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/0.9084, allocations: 0 / 0.6344 GB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004756/0.9131, allocations: 3.583 MB / 0.6379 GB, free: 34.06 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009107/0.9141, allocations: 438.8 kB / 0.6383 GB, free: 33.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002244/0.9143, allocations: 15.89 kB / 0.6383 GB, free: 33.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009013/0.9152, allocations: 66.08 kB / 0.6384 GB, free: 33.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/0.9155, allocations: 107.1 kB / 0.6385 GB, free: 33.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.389e-05/0.9155, allocations: 43.47 kB / 0.6385 GB, free: 33.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001424/0.917, allocations: 1.043 MB / 0.6396 GB, free: 32.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.917, allocations: 0 / 0.6396 GB, free: 32.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003465/0.9204, allocations: 0.9801 MB / 0.6405 GB, free: 31.59 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.0006041/0.9211, allocations: 439.9 kB / 0.6409 GB, free: 31.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004551/0.9256, allocations: 3.927 MB / 0.6448 GB, free: 27.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.9256, allocations: 0 / 0.6448 GB, free: 27.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001784/0.9274, allocations: 1.671 MB / 0.6464 GB, free: 25.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002235/0.9297, allocations: 0.4975 MB / 0.6469 GB, free: 25.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007898/0.9376, allocations: 4.624 MB / 0.6514 GB, free: 21.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001773/0.9394, allocations: 2.38 MB / 0.6537 GB, free: 19.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002693/0.9421, allocations: 0.7272 MB / 0.6544 GB, free: 19.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.9423, allocations: 94.86 kB / 0.6545 GB, free: 18.96 MB / 410.7 MB Notification: Performance of SimCode: time 2.003e-06/0.9424, allocations: 0 / 0.6545 GB, free: 18.96 MB / 410.7 MB Notification: Performance of Templates: time 0.05395/0.9963, allocations: 35.54 MB / 0.6892 GB, free: 4.125 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking_res.mat","/var/lib/jenkins/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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches