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.001234/0.001234, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.334/1.334, allocations: 223.3 MB / 241.4 MB, free: 11.73 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.0008855/0.0008855, allocations: 106.9 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002997/0.0002998, allocations: 8 kB / 352.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.1946, allocations: 50.4 MB / 402.8 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.267/0.4616, allocations: 116.8 MB / 0.5074 GB, free: 100.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.4619, allocations: 99.84 kB / 0.5075 GB, free: 100.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.16/0.6219, allocations: 77.15 MB / 0.5828 GB, free: 31.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.622, allocations: 0 / 0.5828 GB, free: 31.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003648/0.6223, allocations: 79.88 kB / 0.5829 GB, free: 31.36 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.01012/0.6325, allocations: 3.532 MB / 0.5864 GB, free: 27.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.6325, allocations: 8.031 kB / 0.5864 GB, free: 27.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002974/0.6355, allocations: 0.6054 MB / 0.587 GB, free: 27.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005893/0.6414, allocations: 2.554 MB / 0.5895 GB, free: 24.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002426/0.6417, allocations: 234.6 kB / 0.5897 GB, free: 24.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009093/0.6426, allocations: 312.3 kB / 0.59 GB, free: 23.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009571/0.6522, allocations: 4.14 MB / 0.594 GB, free: 19.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001625/0.6524, allocations: 11.84 kB / 0.594 GB, free: 19.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008586/0.6533, allocations: 128 kB / 0.5942 GB, free: 19.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001359/0.6535, allocations: 146.1 kB / 0.5943 GB, free: 19.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006829/0.6603, allocations: 3.354 MB / 0.5976 GB, free: 16.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02035/0.6807, allocations: 13.81 MB / 0.6111 GB, free: 1.844 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005244/0.686, allocations: 5.931 MB / 0.6169 GB, free: 11.2 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002129/0.6881, allocations: 1.37 MB / 0.6182 GB, free: 9.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006114/0.6943, allocations: 3.205 MB / 0.6213 GB, free: 6.547 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.735e-05/0.6943, allocations: 47.88 kB / 0.6214 GB, free: 6.488 MB / 394.7 MB Notification: Performance of pre-optimization done (n=138): time 3.667e-06/0.6944, allocations: 3.938 kB / 0.6214 GB, free: 6.484 MB / 394.7 MB Notification: Performance of matching and sorting (n=142): time 0.01493/0.7093, allocations: 6.661 MB / 0.6279 GB, free: 15.63 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/0.7094, allocations: 90.42 kB / 0.628 GB, free: 15.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003792/0.7132, allocations: 1.911 MB / 0.6298 GB, free: 13.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001346/0.7134, allocations: 57.7 kB / 0.6299 GB, free: 13.51 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001231/0.7146, allocations: 1.451 MB / 0.6313 GB, free: 12.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004507/0.7151, allocations: 488.9 kB / 0.6318 GB, free: 11.56 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.7152, allocations: 36 kB / 0.6318 GB, free: 11.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.7154, allocations: 373.8 kB / 0.6322 GB, free: 11.15 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001347/0.7167, allocations: 0.7496 MB / 0.6329 GB, free: 10.41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001637/0.7184, allocations: 1.277 MB / 0.6341 GB, free: 8.902 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003019/0.7214, allocations: 2.109 MB / 0.6362 GB, free: 6.566 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.637e-05/0.7215, allocations: 8 kB / 0.6362 GB, free: 6.559 MB / 410.7 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004863/0.7263, allocations: 2.729 MB / 0.6389 GB, free: 3.789 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004533/0.7268, allocations: 0.5702 MB / 0.6394 GB, free: 2.992 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-05/0.7269, allocations: 20 kB / 0.6394 GB, free: 2.973 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/0.7281, allocations: 0.5184 MB / 0.64 GB, free: 2.441 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.7295, allocations: 363.4 kB / 0.6403 GB, free: 2.086 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007974/0.7374, allocations: 7.266 MB / 0.6474 GB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/0.7391, allocations: 95.92 kB / 0.6475 GB, free: 10.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002101/0.7393, allocations: 76.19 kB / 0.6476 GB, free: 10.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/0.7393, allocations: 6.812 kB / 0.6476 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004248/0.7436, allocations: 2.519 MB / 0.65 GB, free: 7.695 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.498e-05/0.7436, allocations: 16 kB / 0.65 GB, free: 7.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001139/0.7448, allocations: 0.523 MB / 0.6506 GB, free: 7.145 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/0.7461, allocations: 359.4 kB / 0.6509 GB, free: 6.793 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2079/0.954, allocations: 7.262 MB / 0.658 GB, free: 81.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/0.956, allocations: 85.98 kB / 0.6581 GB, free: 81.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000199/0.9562, allocations: 77.62 kB / 0.6581 GB, free: 81.73 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 () * 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.002477/0.9587, allocations: 1.07 MB / 0.6592 GB, free: 81.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003856/0.9591, allocations: 209 kB / 0.6594 GB, free: 81.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003693/0.9628, allocations: 2.491 MB / 0.6618 GB, free: 81.24 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/0.9629, allocations: 17.06 kB / 0.6618 GB, free: 81.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.9629, allocations: 6.906 kB / 0.6618 GB, free: 81.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.9629, allocations: 6.656 kB / 0.6619 GB, free: 81.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007186/0.9701, allocations: 5.374 MB / 0.6671 GB, free: 80.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.9701, allocations: 0 / 0.6671 GB, free: 80.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007165/0.9709, allocations: 183.1 kB / 0.6673 GB, free: 80.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001274/0.9721, allocations: 0.6571 MB / 0.6679 GB, free: 80.53 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.043e-05/0.9722, allocations: 27.72 kB / 0.6679 GB, free: 80.53 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008457/0.9807, allocations: 11.32 MB / 0.679 GB, free: 74 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.9807, allocations: 5.781 kB / 0.679 GB, free: 74 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0048/0.9856, allocations: 3.65 MB / 0.6826 GB, free: 73.49 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009341/0.9865, allocations: 472.1 kB / 0.683 GB, free: 73.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002448/0.9868, allocations: 32.38 kB / 0.683 GB, free: 73.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009112/0.9877, allocations: 80.36 kB / 0.6831 GB, free: 73.39 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002876/0.988, allocations: 117.8 kB / 0.6832 GB, free: 73.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.62e-05/0.9881, allocations: 46.91 kB / 0.6833 GB, free: 73.39 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001731/0.9898, allocations: 1.295 MB / 0.6845 GB, free: 73.25 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9898, allocations: 0 / 0.6845 GB, free: 73.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003221/0.9931, allocations: 1.113 MB / 0.6856 GB, free: 73.25 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 () * 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.0006153/0.9937, allocations: 485.9 kB / 0.6861 GB, free: 73.13 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005183/0.9989, allocations: 4.182 MB / 0.6902 GB, free: 72.17 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.9989, allocations: 3.344 kB / 0.6902 GB, free: 72.17 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002105/1.001, allocations: 1.784 MB / 0.6919 GB, free: 71.57 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003095/1.004, allocations: 0.6069 MB / 0.6925 GB, free: 71.56 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008187/1.012, allocations: 6.958 MB / 0.6993 GB, free: 68.64 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00165/1.014, allocations: 2.32 MB / 0.7016 GB, free: 67.86 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001967/1.016, allocations: 0.5329 MB / 0.7021 GB, free: 67.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003179/1.016, allocations: 134.4 kB / 0.7022 GB, free: 67.79 MB / 426.7 MB Notification: Performance of SimCode: time 5.61e-07/1.016, allocations: 2.812 kB / 0.7022 GB, free: 67.79 MB / 426.7 MB Notification: Performance of Templates: time 0.0575/1.074, allocations: 41.29 MB / 0.7426 GB, free: 53.04 MB / 426.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/jenkins1/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