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.001514/0.001514, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001845/0.001845, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 247.1 MB, free: 10.69 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 60.12 kB / 307.1 MB, free: 0.9258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09938/0.1008, allocations: 50.54 MB / 357.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2383/0.339, allocations: 41.04 MB / 398.7 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02711/0.3662, allocations: 11.04 MB / 409.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01165/0.3779, allocations: 300.7 kB / 410 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02095/0.3989, allocations: 8.24 MB / 418.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01568/0.4146, allocations: 3.196 MB / 421.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008816/0.4235, allocations: 2.254 MB / 423.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02066/0.4442, allocations: 13.47 MB / 437.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04976/0.494, allocations: 28.96 MB / 466.2 MB, free: 20 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01335/0.5074, allocations: 6.965 MB / 473.1 MB, free: 9.035 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01368/0.5211, allocations: 8 MB / 481.1 MB, free: 1.008 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006682/0.5278, allocations: 1.988 MB / 483.1 MB, free: 15.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009487/0.5373, allocations: 2.417 MB / 485.5 MB, free: 12.6 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008279/0.5457, allocations: 4.037 MB / 489.6 MB, free: 8.555 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01912/0.5649, allocations: 7.785 MB / 497.3 MB, free: 0.7383 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02997/0.5949, allocations: 22.97 MB / 0.5081 GB, free: 9.711 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.5949, allocations: 0 / 0.5081 GB, free: 9.711 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5949, allocations: 0 / 0.5081 GB, free: 9.711 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0008916/0.5958, allocations: 4 kB / 0.5081 GB, free: 9.707 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.05415/0.65, allocations: 15.51 MB / 0.5233 GB, free: 10.08 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.6501, allocations: 12.03 kB / 0.5233 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03465/0.6847, allocations: 6.201 MB / 0.5293 GB, free: 3.848 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4084/1.093, allocations: 8.007 MB / 0.5372 GB, free: 126.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001218/1.094, allocations: 0.9367 MB / 0.5381 GB, free: 126.3 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006101/1.1, allocations: 1.227 MB / 0.5393 GB, free: 125.9 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05915/1.16, allocations: 19.03 MB / 0.5579 GB, free: 118.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007568/1.16, allocations: 24.33 kB / 0.5579 GB, free: 118.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005292/1.166, allocations: 0.5096 MB / 0.5584 GB, free: 118 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008027/1.167, allocations: 0.6516 MB / 0.559 GB, free: 117.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04101/1.208, allocations: 17.03 MB / 0.5756 GB, free: 105.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1021/1.31, allocations: 61.35 MB / 0.6356 GB, free: 43.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02101/1.331, allocations: 33.5 MB / 0.6683 GB, free: 5.656 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006273/1.337, allocations: 3.836 MB / 0.672 GB, free: 1.812 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02008/1.357, allocations: 9.104 MB / 0.6809 GB, free: 8.676 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.592e-05/1.357, allocations: 85.33 kB / 0.681 GB, free: 8.582 MB / 462.1 MB Notification: Performance of pre-optimization done (n=361): time 7.474e-06/1.357, allocations: 0 / 0.681 GB, free: 8.582 MB / 462.1 MB Notification: Performance of matching and sorting (n=403): time 0.04169/1.399, allocations: 17.77 MB / 0.6983 GB, free: 6.691 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/1.399, allocations: 94.58 kB / 0.6984 GB, free: 6.586 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01177/1.411, allocations: 5.257 MB / 0.7036 GB, free: 1.348 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008834/1.412, allocations: 89.7 kB / 0.7036 GB, free: 1.254 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004483/1.416, allocations: 5.625 MB / 0.7091 GB, free: 11.59 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002143/1.419, allocations: 1.396 MB / 0.7105 GB, free: 10.21 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004339/1.423, allocations: 1.354 MB / 0.7118 GB, free: 8.844 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/1.423, allocations: 301.1 kB / 0.7121 GB, free: 8.547 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005541/1.429, allocations: 2.973 MB / 0.715 GB, free: 5.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2896/1.718, allocations: 6.009 MB / 0.7209 GB, free: 153.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01429/1.733, allocations: 9.665 MB / 0.7303 GB, free: 148.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001632/1.733, allocations: 31.38 kB / 0.7304 GB, free: 148.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.02259/1.755, allocations: 10.09 MB / 0.7402 GB, free: 144.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000136/1.756, allocations: 49 kB / 0.7403 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002411/1.756, allocations: 101.6 kB / 0.7403 GB, free: 144.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002953/1.759, allocations: 0.9509 MB / 0.7413 GB, free: 144 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006769/1.766, allocations: 1.622 MB / 0.7429 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01143/1.777, allocations: 10.21 MB / 0.7528 GB, free: 136.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006331/1.783, allocations: 415 kB / 0.7532 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00141/1.785, allocations: 366.6 kB / 0.7536 GB, free: 136.7 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.008369/1.793, allocations: 4.302 MB / 0.7578 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001513/1.795, allocations: 0.5433 MB / 0.7583 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01052/1.805, allocations: 6.678 MB / 0.7648 GB, free: 131.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.069e-05/1.805, allocations: 43.41 kB / 0.7649 GB, free: 131.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.18e-05/1.805, allocations: 9.906 kB / 0.7649 GB, free: 131.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.263e-05/1.805, allocations: 24.55 kB / 0.7649 GB, free: 131.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02891/1.834, allocations: 16.25 MB / 0.7808 GB, free: 124 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/1.834, allocations: 7.938 kB / 0.7808 GB, free: 124 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003173/1.838, allocations: 0.772 MB / 0.7815 GB, free: 123.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002079/1.84, allocations: 0.7978 MB / 0.7823 GB, free: 122.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000515/1.84, allocations: 91.69 kB / 0.7824 GB, free: 122.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008699/1.849, allocations: 9.351 MB / 0.7915 GB, free: 113.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.849, allocations: 4.156 kB / 0.7915 GB, free: 113.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01319/1.862, allocations: 9.794 MB / 0.8011 GB, free: 104.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003232/1.865, allocations: 1.095 MB / 0.8022 GB, free: 103.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001562/1.867, allocations: 79.91 kB / 0.8023 GB, free: 103.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003307/1.87, allocations: 227.7 kB / 0.8025 GB, free: 103.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006401/1.871, allocations: 274.8 kB / 0.8027 GB, free: 102.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000257/1.871, allocations: 123.7 kB / 0.8029 GB, free: 102.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005705/1.877, allocations: 3.502 MB / 0.8063 GB, free: 99.21 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.91e-07/1.877, allocations: 4 kB / 0.8063 GB, free: 99.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008833/1.886, allocations: 1.941 MB / 0.8082 GB, free: 97.27 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.001101/1.887, allocations: 278.7 kB / 0.8084 GB, free: 96.99 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02695/1.914, allocations: 13.47 MB / 0.8216 GB, free: 83.49 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/1.914, allocations: 0 / 0.8216 GB, free: 83.49 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005319/1.919, allocations: 3.635 MB / 0.8251 GB, free: 79.78 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007352/1.927, allocations: 1.399 MB / 0.8265 GB, free: 78.43 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04317/1.97, allocations: 25.38 MB / 0.8513 GB, free: 52.98 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01329/1.983, allocations: 7.209 MB / 0.8583 GB, free: 45.73 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002559/1.986, allocations: 479.3 kB / 0.8588 GB, free: 45.27 MB / 494.1 MB Notification: Performance of SimCode: time 1.012e-06/1.986, allocations: 0 / 0.8588 GB, free: 45.27 MB / 494.1 MB Notification: Performance of Templates: time 1.172/3.158, allocations: 473.9 MB / 1.322 GB, free: 151.7 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.0.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