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.001513/0.001513, allocations: 180 kB / 17.01 MB, free: 5.125 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.476/1.476, allocations: 205.4 MB / 223.1 MB, free: 9.039 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.0008107/0.0008108, allocations: 86.61 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002742/0.0002742, allocations: 12 kB / 328.3 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2509, allocations: 47.55 MB / 375.8 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1407/0.3916, allocations: 115.7 MB / 491.5 MB, free: 12.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/0.3919, allocations: 91.89 kB / 491.6 MB, free: 12.81 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3748/0.7668, allocations: 76.96 MB / 0.5552 GB, free: 62.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.7668, allocations: 0 / 0.5552 GB, free: 62.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002928/0.7671, allocations: 79.94 kB / 0.5553 GB, free: 62.11 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.7773, allocations: 3.556 MB / 0.5588 GB, free: 58.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.7773, allocations: 8.031 kB / 0.5588 GB, free: 58.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003197/0.7805, allocations: 0.6009 MB / 0.5594 GB, free: 57.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007722/0.7883, allocations: 3.151 MB / 0.5625 GB, free: 54.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/0.7885, allocations: 234.2 kB / 0.5627 GB, free: 54.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009917/0.7895, allocations: 319.9 kB / 0.563 GB, free: 54.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006921/0.7964, allocations: 4.117 MB / 0.567 GB, free: 49.83 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-05/0.7965, allocations: 11.92 kB / 0.567 GB, free: 49.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002816/0.7968, allocations: 132 kB / 0.5671 GB, free: 49.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/0.7969, allocations: 138.1 kB / 0.5673 GB, free: 49.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004853/0.8018, allocations: 3.362 MB / 0.5706 GB, free: 46.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0211/0.8229, allocations: 13.82 MB / 0.5841 GB, free: 31.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004388/0.8273, allocations: 5.932 MB / 0.5898 GB, free: 25.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005586/0.833, allocations: 3.244 MB / 0.593 GB, free: 22.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.292e-05/0.833, allocations: 51.88 kB / 0.5931 GB, free: 21.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=143): time 3.045e-06/0.8331, allocations: 0 / 0.5931 GB, free: 21.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.01215/0.8452, allocations: 6.784 MB / 0.5997 GB, free: 14.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.8453, allocations: 94.42 kB / 0.5998 GB, free: 14.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002289/0.8476, allocations: 1.694 MB / 0.6014 GB, free: 13.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000133/0.8477, allocations: 53.7 kB / 0.6015 GB, free: 13.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006215/0.8484, allocations: 1.444 MB / 0.6029 GB, free: 11.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002722/0.8486, allocations: 0.4891 MB / 0.6034 GB, free: 11.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.715e-05/0.8487, allocations: 32 kB / 0.6034 GB, free: 11.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.562e-05/0.8488, allocations: 377.9 kB / 0.6038 GB, free: 10.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009872/0.8498, allocations: 0.7652 MB / 0.6045 GB, free: 9.953 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.851, allocations: 1.275 MB / 0.6058 GB, free: 8.457 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.8522, allocations: 0.9472 MB / 0.6067 GB, free: 7.508 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.8522, allocations: 12 kB / 0.6067 GB, free: 7.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.003863/0.8561, allocations: 2.807 MB / 0.6094 GB, free: 4.648 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001597/0.8577, allocations: 6.426 MB / 0.6157 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.979e-05/0.8577, allocations: 16 kB / 0.6157 GB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.859, allocations: 0.5271 MB / 0.6162 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/0.8605, allocations: 375.4 kB / 0.6166 GB, free: 12.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007589/0.8681, allocations: 7.411 MB / 0.6238 GB, free: 4.973 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001879/0.87, allocations: 99.97 kB / 0.6239 GB, free: 4.875 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002087/0.8702, allocations: 75.98 kB / 0.624 GB, free: 4.801 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.8702, allocations: 4 kB / 0.624 GB, free: 4.797 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004347/0.8746, allocations: 2.574 MB / 0.6265 GB, free: 2.188 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.656e-05/0.8747, allocations: 16 kB / 0.6265 GB, free: 2.172 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001193/0.8759, allocations: 0.5153 MB / 0.627 GB, free: 1.645 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00141/0.8773, allocations: 371.4 kB / 0.6274 GB, free: 1.281 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008521/0.8858, allocations: 7.401 MB / 0.6346 GB, free: 9.477 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001924/0.8878, allocations: 92.03 kB / 0.6347 GB, free: 9.387 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002652/0.8881, allocations: 79.95 kB / 0.6348 GB, free: 9.309 MB / 410.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.002282/0.8903, allocations: 1.07 MB / 0.6358 GB, free: 8.227 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006416/0.891, allocations: 209.5 kB / 0.636 GB, free: 8.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004279/0.8953, allocations: 2.537 MB / 0.6385 GB, free: 5.422 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.155e-05/0.8953, allocations: 16 kB / 0.6385 GB, free: 5.406 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.8953, allocations: 7.953 kB / 0.6385 GB, free: 5.398 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.8954, allocations: 7.969 kB / 0.6385 GB, free: 5.391 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2387/1.134, allocations: 5.455 MB / 0.6439 GB, free: 89.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.608e-05/1.134, allocations: 2.469 kB / 0.6439 GB, free: 89.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/1.135, allocations: 192.3 kB / 0.644 GB, free: 89.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001494/1.137, allocations: 0.6528 MB / 0.6447 GB, free: 89.17 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/1.137, allocations: 31.58 kB / 0.6447 GB, free: 89.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008577/1.145, allocations: 11.53 MB / 0.656 GB, free: 82.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/1.145, allocations: 4.969 kB / 0.656 GB, free: 82.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004497/1.15, allocations: 3.824 MB / 0.6597 GB, free: 82.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/1.151, allocations: 467.3 kB / 0.6602 GB, free: 81.94 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000248/1.151, allocations: 35.44 kB / 0.6602 GB, free: 81.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009307/1.152, allocations: 90.41 kB / 0.6603 GB, free: 81.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002383/1.152, allocations: 117.3 kB / 0.6604 GB, free: 81.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.923e-05/1.153, allocations: 49.11 kB / 0.6604 GB, free: 81.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001652/1.154, allocations: 1.294 MB / 0.6617 GB, free: 81.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.154, allocations: 0 / 0.6617 GB, free: 81.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003159/1.157, allocations: 1.115 MB / 0.6628 GB, free: 81.79 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 (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%) 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.0006019/1.158, allocations: 460.6 kB / 0.6632 GB, free: 81.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005271/1.163, allocations: 4.241 MB / 0.6674 GB, free: 80.73 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/1.163, allocations: 7.125 kB / 0.6674 GB, free: 80.73 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002283/1.166, allocations: 1.815 MB / 0.6691 GB, free: 80.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002526/1.168, allocations: 0.5979 MB / 0.6697 GB, free: 80.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009831/1.178, allocations: 7.12 MB / 0.6767 GB, free: 77.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00211/1.18, allocations: 2.376 MB / 0.679 GB, free: 76.43 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002072/1.182, allocations: 0.5297 MB / 0.6795 GB, free: 76.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003593/1.183, allocations: 135.2 kB / 0.6797 GB, free: 76.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.022e-06/1.183, allocations: 0 / 0.6797 GB, free: 76.36 MB / 410.7 MB Notification: Performance of Templates: time 0.05792/1.241, allocations: 40.82 MB / 0.7195 GB, free: 59.55 MB / 410.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