Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001759/0.001768, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002374/0.002373, allocations: 206.8 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.589/2.589, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5612/0.5632, allocations: 50.54 MB / 410 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.08263/0.6459, allocations: 37.89 MB / 447.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05037/0.6963, allocations: 10.3 MB / 458.2 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01681/0.7132, allocations: 275.1 kB / 458.4 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03495/0.7483, allocations: 9.113 MB / 467.5 MB, free: 7.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02843/0.7768, allocations: 3.911 MB / 471.4 MB, free: 3.883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01557/0.7924, allocations: 2.428 MB / 473.9 MB, free: 1.465 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03738/0.8299, allocations: 14.23 MB / 488.1 MB, free: 3.191 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07708/0.907, allocations: 25.62 MB / 0.5017 GB, free: 9.395 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02414/0.9313, allocations: 7.223 MB / 0.5087 GB, free: 2.156 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02591/0.9573, allocations: 8.051 MB / 0.5166 GB, free: 10.07 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0111/0.9685, allocations: 2.031 MB / 0.5186 GB, free: 8.043 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01269/0.9812, allocations: 2.445 MB / 0.521 GB, free: 5.602 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01107/0.9924, allocations: 4.029 MB / 0.5249 GB, free: 1.562 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02667/1.019, allocations: 7.825 MB / 0.5325 GB, free: 9.703 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.464/1.483, allocations: 26.98 MB / 0.5589 GB, free: 57.05 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.024e-05/1.483, allocations: 0 / 0.5589 GB, free: 57.05 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.625e-06/1.483, allocations: 2.469 kB / 0.5589 GB, free: 57.05 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001077/1.484, allocations: 0 / 0.5589 GB, free: 57.05 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.08175/1.566, allocations: 15.89 MB / 0.5744 GB, free: 50.17 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/1.566, allocations: 10.34 kB / 0.5744 GB, free: 50.17 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06432/1.631, allocations: 6.454 MB / 0.5807 GB, free: 47.69 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02982/1.66, allocations: 8.595 MB / 0.5891 GB, free: 43.17 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001317/1.662, allocations: 0.8993 MB / 0.59 GB, free: 42.77 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00729/1.669, allocations: 1.191 MB / 0.5912 GB, free: 42.37 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06868/1.738, allocations: 18.77 MB / 0.6095 GB, free: 24.54 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008512/1.739, allocations: 19.81 kB / 0.6095 GB, free: 24.52 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00714/1.746, allocations: 0.4938 MB / 0.61 GB, free: 24.04 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009862/1.747, allocations: 0.6571 MB / 0.6106 GB, free: 23.38 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05623/1.803, allocations: 17 MB / 0.6272 GB, free: 6.375 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.181/1.984, allocations: 63.19 MB / 0.6889 GB, free: 6.418 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04539/2.03, allocations: 30.01 MB / 0.7182 GB, free: 4.902 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01155/2.041, allocations: 4.026 MB / 0.7222 GB, free: 0.875 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03606/2.077, allocations: 10.37 MB / 0.7323 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001073/2.078, allocations: 77.8 kB / 0.7324 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=402): time 9.437e-06/2.078, allocations: 2.078 kB / 0.7324 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of matching and sorting (n=412): time 0.08144/2.159, allocations: 20.11 MB / 0.752 GB, free: 2.043 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/2.159, allocations: 128.3 kB / 0.7521 GB, free: 1.898 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3757/2.535, allocations: 5.179 MB / 0.7572 GB, free: 216.8 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001073/2.536, allocations: 95.98 kB / 0.7573 GB, free: 216.7 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004949/2.541, allocations: 5.372 MB / 0.7625 GB, free: 214.9 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002534/2.544, allocations: 1.42 MB / 0.7639 GB, free: 213.8 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004381/2.548, allocations: 1.238 MB / 0.7651 GB, free: 213.2 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.937e-05/2.548, allocations: 304.8 kB / 0.7654 GB, free: 212.9 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00732/2.555, allocations: 2.852 MB / 0.7682 GB, free: 211.8 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009778/2.565, allocations: 5.348 MB / 0.7734 GB, free: 207.5 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02182/2.587, allocations: 8.734 MB / 0.782 GB, free: 201.3 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001721/2.587, allocations: 22.94 kB / 0.782 GB, free: 201.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.04093/2.628, allocations: 9.677 MB / 0.7914 GB, free: 197.3 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002112/2.629, allocations: 38.75 kB / 0.7915 GB, free: 197.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002844/2.629, allocations: 84.34 kB / 0.7916 GB, free: 197.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005385/2.634, allocations: 1.125 MB / 0.7927 GB, free: 197 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01031/2.645, allocations: 1.449 MB / 0.7941 GB, free: 196.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02476/2.67, allocations: 13.47 MB / 0.8072 GB, free: 183.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01012/2.68, allocations: 360.8 kB / 0.8076 GB, free: 183.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002034/2.682, allocations: 319.4 kB / 0.8079 GB, free: 183.3 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01448/2.696, allocations: 4.237 MB / 0.812 GB, free: 179.6 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002531/2.699, allocations: 0.5363 MB / 0.8125 GB, free: 179.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02281/2.722, allocations: 7.086 MB / 0.8195 GB, free: 173 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01225/2.734, allocations: 4.226 MB / 0.8236 GB, free: 169.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.89e-05/2.734, allocations: 16 kB / 0.8236 GB, free: 169.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001383/2.734, allocations: 23.62 kB / 0.8236 GB, free: 169.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05829/2.793, allocations: 16.96 MB / 0.8402 GB, free: 153.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.876e-05/2.793, allocations: 8.578 kB / 0.8402 GB, free: 153.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005872/2.799, allocations: 0.6904 MB / 0.8409 GB, free: 152.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005622/2.804, allocations: 1.178 MB / 0.842 GB, free: 151.4 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001284/2.806, allocations: 99.97 kB / 0.8421 GB, free: 151.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02941/2.835, allocations: 17.39 MB / 0.8591 GB, free: 133.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.04e-05/2.835, allocations: 7.938 kB / 0.8591 GB, free: 133.1 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03052/2.866, allocations: 10.27 MB / 0.8691 GB, free: 122.7 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006308/2.872, allocations: 1.121 MB / 0.8702 GB, free: 121.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002861/2.875, allocations: 79.98 kB / 0.8703 GB, free: 121.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007025/2.882, allocations: 211.8 kB / 0.8705 GB, free: 121.2 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00184/2.884, allocations: 307.3 kB / 0.8708 GB, free: 120.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001025/2.885, allocations: 120 kB / 0.8709 GB, free: 120.8 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.01076/2.896, allocations: 3.485 MB / 0.8743 GB, free: 117.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.663e-06/2.896, allocations: 0 / 0.8743 GB, free: 117.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01482/2.911, allocations: 1.956 MB / 0.8762 GB, free: 115.4 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (10,46,52.0%), (1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001783/2.913, allocations: 290.8 kB / 0.8765 GB, free: 115.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.02172/2.934, allocations: 7.7 MB / 0.884 GB, free: 107.3 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.56e-05/2.935, allocations: 0 / 0.884 GB, free: 107.3 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.01171/2.946, allocations: 4.089 MB / 0.888 GB, free: 103.2 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0153/2.962, allocations: 1.448 MB / 0.8894 GB, free: 101.8 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09618/3.058, allocations: 20.03 MB / 0.909 GB, free: 81.69 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02632/3.084, allocations: 7.14 MB / 0.916 GB, free: 74.51 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003553/3.088, allocations: 459.3 kB / 0.9164 GB, free: 74.06 MB / 0.5763 GB Notification: Performance of SimCode: time 2.004e-06/3.088, allocations: 0 / 0.9164 GB, free: 74.06 MB / 0.5763 GB Notification: Performance of Templates: time 2.531/5.619, allocations: 0.4972 GB / 1.414 GB, free: 189.5 MB / 0.5763 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches