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.001437/0.001437, allocations: 183.8 kB / 18.04 MB, free: 3.781 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.457/1.457, allocations: 205.4 MB / 224.2 MB, free: 9.023 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.0008537/0.0008533, allocations: 87.17 kB / 272.5 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002921/0.0002922, allocations: 8 kB / 329.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1984, allocations: 47.57 MB / 377 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.118/0.3164, allocations: 116 MB / 493 MB, free: 12.46 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.3167, allocations: 91.95 kB / 493.1 MB, free: 12.37 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3093/0.626, allocations: 76.84 MB / 0.5566 GB, free: 61.81 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.626, allocations: 3.938 kB / 0.5566 GB, free: 61.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002483/0.6263, allocations: 83.86 kB / 0.5567 GB, free: 61.72 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.008256/0.6346, allocations: 3.513 MB / 0.5601 GB, free: 58.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.6346, allocations: 15.97 kB / 0.5601 GB, free: 58.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002733/0.6374, allocations: 0.6015 MB / 0.5607 GB, free: 57.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004899/0.6423, allocations: 2.555 MB / 0.5632 GB, free: 54.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.6424, allocations: 234.6 kB / 0.5634 GB, free: 54.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007316/0.6432, allocations: 308.3 kB / 0.5637 GB, free: 54.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006448/0.6496, allocations: 4.153 MB / 0.5678 GB, free: 50.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.483e-05/0.6497, allocations: 15.86 kB / 0.5678 GB, free: 50.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003059/0.6501, allocations: 128 kB / 0.5679 GB, free: 49.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.727e-05/0.6502, allocations: 138.1 kB / 0.5681 GB, free: 49.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005136/0.6553, allocations: 3.358 MB / 0.5713 GB, free: 46.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01773/0.673, allocations: 13.83 MB / 0.5848 GB, free: 32.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004139/0.6772, allocations: 5.932 MB / 0.5906 GB, free: 25.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001681/0.6789, allocations: 1.37 MB / 0.592 GB, free: 24.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004705/0.6837, allocations: 3.205 MB / 0.5951 GB, free: 20.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.6837, allocations: 47.88 kB / 0.5952 GB, free: 20.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=138): time 3.276e-06/0.6837, allocations: 0 / 0.5952 GB, free: 20.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=142): time 0.01117/0.6949, allocations: 6.703 MB / 0.6017 GB, free: 13.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.045e-05/0.6949, allocations: 90.42 kB / 0.6018 GB, free: 13.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002457/0.6974, allocations: 1.915 MB / 0.6037 GB, free: 11.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.675e-05/0.6975, allocations: 45.7 kB / 0.6037 GB, free: 11.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006761/0.6982, allocations: 1.459 MB / 0.6051 GB, free: 10.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000297/0.6985, allocations: 489 kB / 0.6056 GB, free: 9.879 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.83e-05/0.6986, allocations: 35.94 kB / 0.6056 GB, free: 9.844 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.832e-05/0.6987, allocations: 377.8 kB / 0.606 GB, free: 9.469 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.6997, allocations: 0.7457 MB / 0.6067 GB, free: 8.727 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001199/0.7009, allocations: 1.273 MB / 0.608 GB, free: 7.223 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002251/0.7032, allocations: 2.117 MB / 0.61 GB, free: 4.879 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.079e-05/0.7032, allocations: 4 kB / 0.61 GB, free: 4.875 MB / 378.7 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.003646/0.7069, allocations: 2.721 MB / 0.6127 GB, free: 2.113 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002322/0.7071, allocations: 0.5682 MB / 0.6132 GB, free: 1.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/0.7071, allocations: 20 kB / 0.6133 GB, free: 1.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/0.7081, allocations: 0.5155 MB / 0.6138 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.7094, allocations: 375.4 kB / 0.6141 GB, free: 416 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007536/0.7169, allocations: 7.26 MB / 0.6212 GB, free: 8.738 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/0.7187, allocations: 95.95 kB / 0.6213 GB, free: 8.645 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002082/0.7189, allocations: 76 kB / 0.6214 GB, free: 8.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.456e-06/0.7189, allocations: 8.094 kB / 0.6214 GB, free: 8.562 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003969/0.7229, allocations: 2.496 MB / 0.6238 GB, free: 6.035 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.374e-05/0.7229, allocations: 16 kB / 0.6238 GB, free: 6.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.724, allocations: 0.511 MB / 0.6243 GB, free: 5.496 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.7253, allocations: 367.4 kB / 0.6247 GB, free: 5.137 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006982/0.7323, allocations: 7.275 MB / 0.6318 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/0.7337, allocations: 83.94 kB / 0.6319 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000155/0.7339, allocations: 68 kB / 0.6319 GB, free: 13.31 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 () * 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.001985/0.7359, allocations: 1.078 MB / 0.633 GB, free: 12.22 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005619/0.7365, allocations: 217.4 kB / 0.6332 GB, free: 12.01 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004081/0.7406, allocations: 2.482 MB / 0.6356 GB, free: 9.461 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.7406, allocations: 12 kB / 0.6356 GB, free: 9.449 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.7406, allocations: 7.938 kB / 0.6356 GB, free: 9.441 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.488e-05/0.7406, allocations: 11.97 kB / 0.6356 GB, free: 9.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008982/0.7496, allocations: 5.413 MB / 0.6409 GB, free: 3.859 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.7496, allocations: 0 / 0.6409 GB, free: 3.859 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007915/0.7504, allocations: 184 kB / 0.6411 GB, free: 3.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00146/0.7519, allocations: 0.664 MB / 0.6418 GB, free: 3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.998e-05/0.752, allocations: 35.98 kB / 0.6418 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1759/0.9279, allocations: 11.29 MB / 0.6528 GB, free: 85.53 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.928, allocations: 7.656 kB / 0.6528 GB, free: 85.53 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004617/0.9326, allocations: 3.616 MB / 0.6564 GB, free: 85.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008475/0.9335, allocations: 471.2 kB / 0.6568 GB, free: 84.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002281/0.9337, allocations: 28.84 kB / 0.6568 GB, free: 84.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000897/0.9346, allocations: 87.31 kB / 0.6569 GB, free: 84.96 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002566/0.9349, allocations: 123.7 kB / 0.657 GB, free: 84.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-05/0.9349, allocations: 35.34 kB / 0.6571 GB, free: 84.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001639/0.9366, allocations: 1.305 MB / 0.6583 GB, free: 84.81 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9366, allocations: 0 / 0.6583 GB, free: 84.81 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002875/0.9395, allocations: 1.106 MB / 0.6594 GB, free: 84.81 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 (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.0005499/0.94, allocations: 454.9 kB / 0.6599 GB, free: 84.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005046/0.9451, allocations: 4.183 MB / 0.6639 GB, free: 83.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.9451, allocations: 0 / 0.6639 GB, free: 83.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002025/0.9472, allocations: 1.798 MB / 0.6657 GB, free: 83.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/0.9505, allocations: 0.6126 MB / 0.6663 GB, free: 83.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00895/0.9595, allocations: 7.061 MB / 0.6732 GB, free: 80.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002063/0.9616, allocations: 2.318 MB / 0.6755 GB, free: 79.42 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002154/0.9637, allocations: 0.5279 MB / 0.676 GB, free: 79.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003511/0.9641, allocations: 132.1 kB / 0.6761 GB, free: 79.35 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.9641, allocations: 4 kB / 0.6761 GB, free: 79.35 MB / 410.7 MB Notification: Performance of Templates: time 0.05776/1.022, allocations: 41.22 MB / 0.7163 GB, free: 63.22 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/jenkins1/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