Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001359/0.001359, allocations: 113.4 kB / 17.99 MB, free: 5.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001452/0.001452, allocations: 201.8 kB / 18.92 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.4 MB / 247.1 MB, free: 9.059 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.001881, allocations: 62.84 kB / 307.2 MB, free: 0.6836 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1197, allocations: 50.54 MB / 357.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2562/0.3759, allocations: 41.04 MB / 398.8 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03428/0.4103, allocations: 11.04 MB / 409.8 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.014/0.4243, allocations: 304.2 kB / 410.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02439/0.4488, allocations: 8.237 MB / 418.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01854/0.4674, allocations: 3.191 MB / 421.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0102/0.4776, allocations: 2.253 MB / 423.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02544/0.5031, allocations: 13.47 MB / 437.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06087/0.564, allocations: 28.96 MB / 466.2 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01655/0.5806, allocations: 6.969 MB / 473.2 MB, free: 8.859 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01733/0.598, allocations: 8 MB / 481.2 MB, free: 0.832 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007571/0.6056, allocations: 1.992 MB / 483.2 MB, free: 14.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01058/0.6162, allocations: 2.41 MB / 485.6 MB, free: 12.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009784/0.6261, allocations: 4.045 MB / 489.6 MB, free: 8.375 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02024/0.6464, allocations: 7.766 MB / 497.4 MB, free: 0.5781 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03711/0.6835, allocations: 22.99 MB / 0.5082 GB, free: 9.531 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.6836, allocations: 0 / 0.5082 GB, free: 9.531 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.6836, allocations: 0 / 0.5082 GB, free: 9.531 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0009363/0.6845, allocations: 0 / 0.5082 GB, free: 9.531 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.05963/0.7442, allocations: 15.51 MB / 0.5233 GB, free: 9.906 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.436e-05/0.7443, allocations: 8.031 kB / 0.5233 GB, free: 9.898 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03685/0.7811, allocations: 6.104 MB / 0.5293 GB, free: 3.773 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4428/1.224, allocations: 8.029 MB / 0.5371 GB, free: 126.4 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001253/1.225, allocations: 0.9305 MB / 0.538 GB, free: 126 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006018/1.231, allocations: 1.227 MB / 0.5392 GB, free: 125.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06022/1.292, allocations: 19.07 MB / 0.5579 GB, free: 118 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005888/1.292, allocations: 15.91 kB / 0.5579 GB, free: 118 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004774/1.297, allocations: 0.5102 MB / 0.5584 GB, free: 117.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008564/1.298, allocations: 0.6551 MB / 0.559 GB, free: 117.6 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03907/1.337, allocations: 17.06 MB / 0.5757 GB, free: 105.2 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1022/1.439, allocations: 61.36 MB / 0.6356 GB, free: 42.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0211/1.46, allocations: 33.53 MB / 0.6683 GB, free: 5.426 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006078/1.466, allocations: 3.837 MB / 0.6721 GB, free: 1.582 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01991/1.486, allocations: 9.14 MB / 0.681 GB, free: 8.418 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.03e-05/1.486, allocations: 69.41 kB / 0.6811 GB, free: 8.34 MB / 462.1 MB Notification: Performance of pre-optimization done (n=361): time 5.3e-06/1.486, allocations: 4 kB / 0.6811 GB, free: 8.336 MB / 462.1 MB Notification: Performance of matching and sorting (n=403): time 0.04299/1.529, allocations: 17.83 MB / 0.6985 GB, free: 6.395 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.948e-05/1.53, allocations: 90.58 kB / 0.6986 GB, free: 6.293 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01098/1.541, allocations: 5.257 MB / 0.7037 GB, free: 1.055 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001026/1.542, allocations: 97.69 kB / 0.7038 GB, free: 0.9531 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005292/1.547, allocations: 5.616 MB / 0.7093 GB, free: 11.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002425/1.549, allocations: 1.4 MB / 0.7107 GB, free: 9.914 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00265/1.552, allocations: 1.358 MB / 0.712 GB, free: 8.547 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/1.552, allocations: 301.1 kB / 0.7123 GB, free: 8.25 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005698/1.558, allocations: 2.977 MB / 0.7152 GB, free: 5.27 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2959/1.854, allocations: 6.014 MB / 0.7211 GB, free: 153 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01536/1.869, allocations: 9.681 MB / 0.7305 GB, free: 147.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001867/1.87, allocations: 34.84 kB / 0.7305 GB, free: 147.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.02297/1.893, allocations: 10.1 MB / 0.7404 GB, free: 143.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001581/1.893, allocations: 48.94 kB / 0.7405 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002887/1.893, allocations: 103.5 kB / 0.7406 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003172/1.896, allocations: 0.9493 MB / 0.7415 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007426/1.904, allocations: 1.629 MB / 0.7431 GB, free: 143.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01162/1.915, allocations: 10.21 MB / 0.753 GB, free: 136.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007114/1.923, allocations: 417.5 kB / 0.7534 GB, free: 136.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001899/1.924, allocations: 372.8 kB / 0.7538 GB, free: 136.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009813/1.934, allocations: 4.3 MB / 0.758 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001759/1.936, allocations: 0.5465 MB / 0.7585 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01197/1.948, allocations: 6.666 MB / 0.765 GB, free: 131.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.963e-05/1.948, allocations: 47.47 kB / 0.7651 GB, free: 131.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.12e-05/1.948, allocations: 11.88 kB / 0.7651 GB, free: 131.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.162e-05/1.948, allocations: 23.06 kB / 0.7651 GB, free: 131.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03368/1.982, allocations: 16.29 MB / 0.781 GB, free: 123.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.614e-05/1.982, allocations: 7.938 kB / 0.781 GB, free: 123.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003328/1.985, allocations: 0.7807 MB / 0.7818 GB, free: 123.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002156/1.988, allocations: 0.8001 MB / 0.7826 GB, free: 122.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006423/1.988, allocations: 89.94 kB / 0.7827 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00883/1.997, allocations: 9.346 MB / 0.7918 GB, free: 113.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/1.997, allocations: 8.547 kB / 0.7918 GB, free: 113.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01405/2.011, allocations: 9.818 MB / 0.8014 GB, free: 104.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003284/2.014, allocations: 1.095 MB / 0.8025 GB, free: 103.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00196/2.016, allocations: 79.09 kB / 0.8025 GB, free: 103.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003699/2.02, allocations: 225.9 kB / 0.8027 GB, free: 102.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006546/2.021, allocations: 279.3 kB / 0.803 GB, free: 102.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002739/2.021, allocations: 124 kB / 0.8031 GB, free: 102.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006644/2.028, allocations: 3.506 MB / 0.8066 GB, free: 99.05 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.054e-06/2.028, allocations: 0 / 0.8066 GB, free: 99.05 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01046/2.038, allocations: 1.951 MB / 0.8085 GB, free: 97.11 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001371/2.04, allocations: 270.2 kB / 0.8087 GB, free: 96.84 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02811/2.068, allocations: 13.48 MB / 0.8219 GB, free: 83.33 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.454e-05/2.068, allocations: 128 / 0.8219 GB, free: 83.33 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006117/2.074, allocations: 3.65 MB / 0.8254 GB, free: 79.61 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008872/2.083, allocations: 1.404 MB / 0.8268 GB, free: 78.26 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0445/2.127, allocations: 25.3 MB / 0.8515 GB, free: 52.89 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01212/2.14, allocations: 7.205 MB / 0.8586 GB, free: 45.64 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002343/2.142, allocations: 0.4965 MB / 0.859 GB, free: 45.15 MB / 494.1 MB Notification: Performance of SimCode: time 1.643e-06/2.142, allocations: 0 / 0.859 GB, free: 45.15 MB / 494.1 MB Notification: Performance of Templates: time 1.307/3.449, allocations: 474.1 MB / 1.322 GB, free: 151.3 MB / 0.5138 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches