Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009423/0.0009423, allocations: 195.4 kB / 18.06 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.5 MB / 245.4 MB, free: 8.258 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007491/0.0007491, allocations: 104 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002749/0.0002749, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2584, allocations: 51.29 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3812/0.6396, allocations: 117.8 MB / 0.5141 GB, free: 98.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.6399, allocations: 103 kB / 0.5142 GB, free: 98.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1663/0.8063, allocations: 79.75 MB / 0.5921 GB, free: 19.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.8063, allocations: 0 / 0.5921 GB, free: 19.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003205/0.8066, allocations: 91.81 kB / 0.5922 GB, free: 19.29 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.0103/0.817, allocations: 3.556 MB / 0.5956 GB, free: 15.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.817, allocations: 12.03 kB / 0.5957 GB, free: 15.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003223/0.8202, allocations: 0.5977 MB / 0.5962 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006925/0.8272, allocations: 2.585 MB / 0.5988 GB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002819/0.8275, allocations: 234.6 kB / 0.599 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001501/0.829, allocations: 308.3 kB / 0.5993 GB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00994/0.839, allocations: 4.136 MB / 0.6033 GB, free: 7.574 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/0.8391, allocations: 7.938 kB / 0.6033 GB, free: 7.566 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005293/0.8396, allocations: 136 kB / 0.6035 GB, free: 7.434 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/0.8398, allocations: 142 kB / 0.6036 GB, free: 7.293 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006276/0.8461, allocations: 3.358 MB / 0.6069 GB, free: 3.926 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02444/0.8705, allocations: 13.98 MB / 0.6205 GB, free: 5.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006851/0.8774, allocations: 6.19 MB / 0.6266 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002448/0.8799, allocations: 1.378 MB / 0.6279 GB, free: 13.19 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006922/0.8869, allocations: 3.367 MB / 0.6312 GB, free: 9.719 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.307e-05/0.8869, allocations: 51.81 kB / 0.6313 GB, free: 9.656 MB / 410.7 MB Notification: Performance of pre-optimization done (n=136): time 4.248e-06/0.887, allocations: 0 / 0.6313 GB, free: 9.656 MB / 410.7 MB Notification: Performance of matching and sorting (n=140): time 0.0147/0.9017, allocations: 6.574 MB / 0.6377 GB, free: 2.891 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/0.9018, allocations: 94.42 kB / 0.6378 GB, free: 2.781 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003815/0.9056, allocations: 1.916 MB / 0.6396 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001664/0.9058, allocations: 53.7 kB / 0.6397 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001198/0.907, allocations: 1.463 MB / 0.6411 GB, free: 15.28 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000498/0.9075, allocations: 481.2 kB / 0.6416 GB, free: 14.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/0.9076, allocations: 36 kB / 0.6416 GB, free: 14.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.9078, allocations: 377.8 kB / 0.642 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001348/0.9092, allocations: 0.7379 MB / 0.6427 GB, free: 13.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001678/0.9109, allocations: 1.273 MB / 0.6439 GB, free: 12.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003107/0.914, allocations: 2.082 MB / 0.646 GB, free: 9.848 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.585e-05/0.914, allocations: 8 kB / 0.646 GB, free: 9.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.00513/0.9192, allocations: 2.721 MB / 0.6486 GB, free: 7.078 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004482/0.9196, allocations: 0.5663 MB / 0.6492 GB, free: 6.289 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/0.9197, allocations: 16 kB / 0.6492 GB, free: 6.273 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001278/0.921, allocations: 0.5028 MB / 0.6497 GB, free: 5.758 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.9223, allocations: 367.4 kB / 0.65 GB, free: 5.398 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007928/0.9303, allocations: 7.042 MB / 0.6569 GB, free: 13.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001845/0.9322, allocations: 103.8 kB / 0.657 GB, free: 13.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002815/0.9325, allocations: 76.25 kB / 0.6571 GB, free: 13.78 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/0.9325, allocations: 4 kB / 0.6571 GB, free: 13.78 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004535/0.937, allocations: 2.491 MB / 0.6595 GB, free: 11.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-05/0.9371, allocations: 20.34 kB / 0.6595 GB, free: 11.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001136/0.9382, allocations: 0.499 MB / 0.66 GB, free: 10.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.9396, allocations: 359.4 kB / 0.6604 GB, free: 10.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007601/0.9472, allocations: 7.045 MB / 0.6673 GB, free: 2.918 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001835/0.9491, allocations: 87.84 kB / 0.6673 GB, free: 2.832 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000302/0.9494, allocations: 75.98 kB / 0.6674 GB, free: 2.758 MB / 442.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 (189): * Single equations (assignments): 185 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002649/0.9521, allocations: 1.071 MB / 0.6685 GB, free: 1.676 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006741/0.9527, allocations: 205.5 kB / 0.6687 GB, free: 1.473 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2277/1.181, allocations: 2.434 MB / 0.671 GB, free: 89.41 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.483e-05/1.181, allocations: 18.09 kB / 0.671 GB, free: 89.41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/1.181, allocations: 4.281 kB / 0.6711 GB, free: 89.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.921e-05/1.181, allocations: 7.594 kB / 0.6711 GB, free: 89.41 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008067/1.189, allocations: 5.28 MB / 0.6762 GB, free: 88.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/1.189, allocations: 0 / 0.6762 GB, free: 88.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007724/1.19, allocations: 184.7 kB / 0.6764 GB, free: 88.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001342/1.191, allocations: 0.6364 MB / 0.677 GB, free: 88.73 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.124e-05/1.191, allocations: 34.44 kB / 0.677 GB, free: 88.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008913/1.2, allocations: 11.1 MB / 0.6879 GB, free: 82.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.2, allocations: 3.719 kB / 0.6879 GB, free: 82.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004754/1.205, allocations: 3.579 MB / 0.6914 GB, free: 81.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/1.206, allocations: 468.5 kB / 0.6918 GB, free: 81.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002956/1.206, allocations: 29.56 kB / 0.6919 GB, free: 81.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009623/1.207, allocations: 82.05 kB / 0.6919 GB, free: 81.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003522/1.207, allocations: 112.5 kB / 0.692 GB, free: 81.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.663e-05/1.208, allocations: 43.48 kB / 0.6921 GB, free: 81.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002242/1.21, allocations: 1.31 MB / 0.6934 GB, free: 81.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.21, allocations: 3.281 kB / 0.6934 GB, free: 81.45 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004309/1.214, allocations: 1.12 MB / 0.6945 GB, free: 81.45 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 (92): * Single equations (assignments): 87 * 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%) 5,(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.0008913/1.215, allocations: 489.5 kB / 0.6949 GB, free: 81.35 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005587/1.221, allocations: 4.097 MB / 0.6989 GB, free: 80.39 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/1.221, allocations: 3.172 kB / 0.6989 GB, free: 80.39 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002067/1.223, allocations: 1.751 MB / 0.7006 GB, free: 79.79 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00333/1.226, allocations: 0.61 MB / 0.7012 GB, free: 79.78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009108/1.235, allocations: 6.978 MB / 0.7081 GB, free: 76.86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001647/1.237, allocations: 2.289 MB / 0.7103 GB, free: 76.08 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005901/1.237, allocations: 145.9 kB / 0.7104 GB, free: 76.08 MB / 442.7 MB Notification: Performance of SimCode: time 6.51e-07/1.237, allocations: 0 / 0.7104 GB, free: 76.08 MB / 442.7 MB Notification: Performance of Templates: time 0.0901/1.328, allocations: 113.1 MB / 0.8209 GB, free: 12.4 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches