Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008313/0.0008314, allocations: 95.94 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.785e-05/1.788e-05, allocations: 4 kB / 337.1 MB, free: 10 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1235, allocations: 50.43 MB / 387.5 MB, free: 7.543 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3742/0.4977, allocations: 115.9 MB / 0.4916 GB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/0.498, allocations: 95.94 kB / 0.4917 GB, free: 10.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4492/0.9473, allocations: 76.24 MB / 0.5661 GB, free: 96.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.9473, allocations: 4.281 kB / 0.5661 GB, free: 96.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003367/0.9477, allocations: 81.77 kB / 0.5662 GB, free: 96.9 MB / 426.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.01229/0.96, allocations: 3.214 MB / 0.5693 GB, free: 95.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.96, allocations: 9.031 kB / 0.5694 GB, free: 95.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004879/0.9649, allocations: 0.5936 MB / 0.5699 GB, free: 95.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01141/0.9764, allocations: 3.125 MB / 0.573 GB, free: 94.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003391/0.9767, allocations: 106.2 kB / 0.5731 GB, free: 94.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001486/0.9783, allocations: 183.1 kB / 0.5733 GB, free: 94.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009648/0.9879, allocations: 3.074 MB / 0.5763 GB, free: 94.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01091/0.9989, allocations: 3.595 MB / 0.5798 GB, free: 94.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001369/0.999, allocations: 6.312 kB / 0.5798 GB, free: 94.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007517/0.9998, allocations: 3.375 kB / 0.5798 GB, free: 94.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001377/1, allocations: 141.4 kB / 0.5799 GB, free: 94.37 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02233/1.022, allocations: 13.21 MB / 0.5928 GB, free: 88.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004086/1.026, allocations: 5.784 MB / 0.5985 GB, free: 83.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001541/1.028, allocations: 1.281 MB / 0.5997 GB, free: 82.61 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00479/1.033, allocations: 3.079 MB / 0.6027 GB, free: 80.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/1.033, allocations: 50.98 kB / 0.6028 GB, free: 80.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=137): time 2.996e-06/1.033, allocations: 0 / 0.6028 GB, free: 80.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.006825/1.04, allocations: 4.5 MB / 0.6072 GB, free: 78.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.905e-05/1.04, allocations: 95.77 kB / 0.6073 GB, free: 78.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0017/1.041, allocations: 1.396 MB / 0.6086 GB, free: 77.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.902e-05/1.042, allocations: 25.7 kB / 0.6086 GB, free: 77.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006056/1.042, allocations: 1.462 MB / 0.6101 GB, free: 76.83 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002364/1.042, allocations: 465.1 kB / 0.6105 GB, free: 76.47 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.342e-05/1.042, allocations: 0 / 0.6105 GB, free: 76.47 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.373e-05/1.043, allocations: 370.3 kB / 0.6109 GB, free: 76.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000786/1.043, allocations: 0.6845 MB / 0.6115 GB, free: 75.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009359/1.044, allocations: 1.202 MB / 0.6127 GB, free: 74.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/1.046, allocations: 0.9464 MB / 0.6136 GB, free: 74.53 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.924e-06/1.046, allocations: 2.781 kB / 0.6136 GB, free: 74.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.003705/1.049, allocations: 2.556 MB / 0.6161 GB, free: 73.45 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001103/1.05, allocations: 6.535 MB / 0.6225 GB, free: 66.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/1.05, allocations: 18.72 kB / 0.6225 GB, free: 66.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/1.051, allocations: 0.5051 MB / 0.623 GB, free: 66.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/1.053, allocations: 364.1 kB / 0.6234 GB, free: 66.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005424/1.058, allocations: 6.991 MB / 0.6302 GB, free: 60.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001568/1.06, allocations: 57.48 kB / 0.6303 GB, free: 60.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001573/1.06, allocations: 75 kB / 0.6303 GB, free: 60.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.245e-06/1.06, allocations: 2.5 kB / 0.6303 GB, free: 60.86 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003379/1.063, allocations: 2.33 MB / 0.6326 GB, free: 59.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.039e-05/1.063, allocations: 20.62 kB / 0.6326 GB, free: 59.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009191/1.064, allocations: 0.5062 MB / 0.6331 GB, free: 59.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/1.065, allocations: 357.3 kB / 0.6335 GB, free: 59.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00522/1.071, allocations: 6.997 MB / 0.6403 GB, free: 54.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001621/1.072, allocations: 53.53 kB / 0.6403 GB, free: 54.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002021/1.073, allocations: 72.06 kB / 0.6404 GB, free: 54.42 MB / 426.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.0004257/1.073, allocations: 160.9 kB / 0.6406 GB, free: 54.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004943/1.073, allocations: 189.7 kB / 0.6407 GB, free: 54.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003776/1.077, allocations: 2.356 MB / 0.643 GB, free: 53.09 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/1.077, allocations: 18.73 kB / 0.6431 GB, free: 53.08 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/1.077, allocations: 6.531 kB / 0.6431 GB, free: 53.08 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/1.077, allocations: 6.891 kB / 0.6431 GB, free: 53.08 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008226/1.086, allocations: 4.803 MB / 0.6478 GB, free: 49.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/1.086, allocations: 0 / 0.6478 GB, free: 49.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007645/1.086, allocations: 180.9 kB / 0.6479 GB, free: 49.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001323/1.088, allocations: 0.6466 MB / 0.6486 GB, free: 48.46 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.164e-05/1.088, allocations: 8 kB / 0.6486 GB, free: 48.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008053/1.096, allocations: 10.9 MB / 0.6592 GB, free: 37.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/1.096, allocations: 0 / 0.6592 GB, free: 37.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004311/1.1, allocations: 3.606 MB / 0.6627 GB, free: 34.44 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/1.101, allocations: 443 kB / 0.6632 GB, free: 34.03 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005404/1.102, allocations: 7.844 kB / 0.6632 GB, free: 34.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/1.103, allocations: 54.61 kB / 0.6632 GB, free: 33.99 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002405/1.103, allocations: 126.1 kB / 0.6633 GB, free: 33.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.661e-05/1.103, allocations: 36 kB / 0.6634 GB, free: 33.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00181/1.105, allocations: 1.047 MB / 0.6644 GB, free: 32.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.105, allocations: 0 / 0.6644 GB, free: 32.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004249/1.11, allocations: 0.9842 MB / 0.6654 GB, free: 31.96 MB / 426.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.0006225/1.11, allocations: 455.9 kB / 0.6658 GB, free: 31.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004661/1.115, allocations: 3.927 MB / 0.6696 GB, free: 27.87 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/1.115, allocations: 5.75 kB / 0.6696 GB, free: 27.86 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001797/1.117, allocations: 1.65 MB / 0.6713 GB, free: 26.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002531/1.119, allocations: 498.9 kB / 0.6717 GB, free: 25.92 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009248/1.128, allocations: 4.543 MB / 0.6762 GB, free: 21.83 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002605/1.131, allocations: 2.388 MB / 0.6785 GB, free: 19.95 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003072/1.134, allocations: 0.7392 MB / 0.6792 GB, free: 19.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002813/1.135, allocations: 91.33 kB / 0.6793 GB, free: 19.39 MB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/1.135, allocations: 4 kB / 0.6793 GB, free: 19.39 MB / 426.7 MB Notification: Performance of Templates: time 0.05561/1.19, allocations: 35.58 MB / 0.7141 GB, free: 1.039 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches