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.001415/0.001415, allocations: 180.3 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009309/0.000931, allocations: 86.98 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000251/0.000251, allocations: 15.94 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2213, allocations: 50.4 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3286/0.55, allocations: 116.6 MB / 0.506 GB, free: 49.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.5503, allocations: 102.1 kB / 0.5061 GB, free: 49.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.168/0.7184, allocations: 77.24 MB / 0.5815 GB, free: 22.01 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.7184, allocations: 3.938 kB / 0.5815 GB, free: 22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003637/0.7188, allocations: 83.94 kB / 0.5816 GB, free: 21.92 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.0109/0.7297, allocations: 3.56 MB / 0.5851 GB, free: 18.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.7298, allocations: 15.97 kB / 0.5851 GB, free: 18.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003403/0.7332, allocations: 0.5967 MB / 0.5857 GB, free: 17.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008792/0.742, allocations: 3.155 MB / 0.5888 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002438/0.7423, allocations: 242.2 kB / 0.589 GB, free: 14.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001253/0.7436, allocations: 312.6 kB / 0.5893 GB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01034/0.7539, allocations: 4.112 MB / 0.5933 GB, free: 9.641 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001511/0.7541, allocations: 7.891 kB / 0.5933 GB, free: 9.633 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008029/0.7549, allocations: 140 kB / 0.5935 GB, free: 9.496 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000135/0.7551, allocations: 142.1 kB / 0.5936 GB, free: 9.355 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006878/0.762, allocations: 3.35 MB / 0.5969 GB, free: 5.996 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02484/0.7868, allocations: 13.81 MB / 0.6103 GB, free: 7.805 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006109/0.793, allocations: 5.929 MB / 0.6161 GB, free: 1.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007164/0.8002, allocations: 3.24 MB / 0.6193 GB, free: 13.85 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.751e-05/0.8003, allocations: 51.88 kB / 0.6194 GB, free: 13.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=143): time 3.256e-06/0.8003, allocations: 0 / 0.6194 GB, free: 13.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.0144/0.8147, allocations: 6.792 MB / 0.626 GB, free: 6.809 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.731e-05/0.8148, allocations: 94.42 kB / 0.6261 GB, free: 6.699 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003663/0.8184, allocations: 1.686 MB / 0.6277 GB, free: 4.977 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001397/0.8186, allocations: 57.64 kB / 0.6278 GB, free: 4.914 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001205/0.8198, allocations: 1.447 MB / 0.6292 GB, free: 3.449 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004552/0.8203, allocations: 0.4968 MB / 0.6297 GB, free: 2.945 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.8204, allocations: 32 kB / 0.6297 GB, free: 2.914 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.8206, allocations: 373.9 kB / 0.6301 GB, free: 2.543 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/0.8219, allocations: 0.7613 MB / 0.6308 GB, free: 1.781 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001606/0.8235, allocations: 1.283 MB / 0.6321 GB, free: 280 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001584/0.8251, allocations: 0.9511 MB / 0.633 GB, free: 15.32 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.581e-05/0.8251, allocations: 8 kB / 0.633 GB, free: 15.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004639/0.8298, allocations: 2.745 MB / 0.6357 GB, free: 12.53 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002347/0.8321, allocations: 6.426 MB / 0.642 GB, free: 5.586 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.404e-05/0.8322, allocations: 16 kB / 0.642 GB, free: 5.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001248/0.8334, allocations: 0.5223 MB / 0.6425 GB, free: 5.035 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.8348, allocations: 375.4 kB / 0.6428 GB, free: 4.668 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008166/0.843, allocations: 7.403 MB / 0.6501 GB, free: 12.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/0.845, allocations: 103.8 kB / 0.6502 GB, free: 12.76 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002393/0.8452, allocations: 72 kB / 0.6502 GB, free: 12.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.8452, allocations: 6.656 kB / 0.6502 GB, free: 12.68 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004235/0.8495, allocations: 2.531 MB / 0.6527 GB, free: 10.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.673e-05/0.8495, allocations: 16 kB / 0.6527 GB, free: 10.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/0.8507, allocations: 0.5152 MB / 0.6532 GB, free: 9.578 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/0.8521, allocations: 371.4 kB / 0.6536 GB, free: 9.215 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007771/0.8599, allocations: 7.404 MB / 0.6608 GB, free: 1.402 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001936/0.8618, allocations: 83.94 kB / 0.6609 GB, free: 1.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000282/0.8621, allocations: 79.98 kB / 0.661 GB, free: 1.242 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (191): * Single equations (assignments): 187 * 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.002703/0.8649, allocations: 1.063 MB / 0.662 GB, free: 172 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2127/1.078, allocations: 210.3 kB / 0.6622 GB, free: 93.64 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004387/1.082, allocations: 2.544 MB / 0.6647 GB, free: 93.35 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/1.082, allocations: 19.28 kB / 0.6647 GB, free: 93.35 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/1.082, allocations: 3.906 kB / 0.6647 GB, free: 93.35 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/1.082, allocations: 9.953 kB / 0.6647 GB, free: 93.35 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007469/1.089, allocations: 5.427 MB / 0.67 GB, free: 92.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/1.09, allocations: 0 / 0.67 GB, free: 92.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007847/1.09, allocations: 197.2 kB / 0.6702 GB, free: 92.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001227/1.092, allocations: 0.6583 MB / 0.6709 GB, free: 92.65 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.074e-05/1.092, allocations: 35.42 kB / 0.6709 GB, free: 92.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008393/1.1, allocations: 11.52 MB / 0.6821 GB, free: 86.12 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/1.1, allocations: 7.031 kB / 0.6821 GB, free: 86.12 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005027/1.105, allocations: 3.822 MB / 0.6859 GB, free: 85.44 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001457/1.107, allocations: 472.1 kB / 0.6863 GB, free: 85.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003703/1.107, allocations: 28.94 kB / 0.6864 GB, free: 85.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/1.108, allocations: 88.78 kB / 0.6864 GB, free: 85.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004454/1.109, allocations: 125.8 kB / 0.6866 GB, free: 85.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.687e-05/1.109, allocations: 40.75 kB / 0.6866 GB, free: 85.34 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002262/1.111, allocations: 1.295 MB / 0.6879 GB, free: 85.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.111, allocations: 5.281 kB / 0.6879 GB, free: 85.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003422/1.114, allocations: 1.113 MB / 0.689 GB, free: 85.2 MB / 442.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 (96): * Single equations (assignments): 91 * 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%) 8,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006121/1.115, allocations: 482.3 kB / 0.6894 GB, free: 85.08 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004843/1.12, allocations: 4.245 MB / 0.6936 GB, free: 84.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/1.12, allocations: 5.875 kB / 0.6936 GB, free: 84.12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001962/1.122, allocations: 1.802 MB / 0.6953 GB, free: 83.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002086/1.124, allocations: 0.5898 MB / 0.6959 GB, free: 83.51 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007867/1.132, allocations: 7.019 MB / 0.7028 GB, free: 80.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001683/1.134, allocations: 2.384 MB / 0.7051 GB, free: 79.84 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0018/1.135, allocations: 0.5325 MB / 0.7056 GB, free: 79.78 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000314/1.136, allocations: 130.6 kB / 0.7057 GB, free: 79.77 MB / 442.7 MB Notification: Performance of SimCode: time 9.62e-07/1.136, allocations: 0 / 0.7057 GB, free: 79.77 MB / 442.7 MB Notification: Performance of Templates: time 0.05474/1.19, allocations: 40.9 MB / 0.7457 GB, free: 69.37 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