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/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.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/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 198.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009533/0.0009531, allocations: 102 kB / 286.7 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.627e-05/1.647e-05, allocations: 4 kB / 343.7 MB, free: 8.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.114, allocations: 51.48 MB / 395.2 MB, free: 4.727 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4456/0.5596, allocations: 164.2 MB / 0.5463 GB, free: 10.21 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003166/0.56, allocations: 103.2 kB / 0.5464 GB, free: 10.16 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.687/2.247, allocations: 400.3 MB / 0.9373 GB, free: 41.95 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.926e-06/2.247, allocations: 2.5 kB / 0.9373 GB, free: 41.95 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008597/2.247, allocations: 287.6 kB / 0.9376 GB, free: 41.93 MB / 474.7 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.03845/2.286, allocations: 11.05 MB / 0.9484 GB, free: 38.42 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/2.286, allocations: 13.62 kB / 0.9484 GB, free: 38.42 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02858/2.315, allocations: 4.469 MB / 0.9527 GB, free: 37.74 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03495/2.35, allocations: 9.556 MB / 0.9621 GB, free: 36.54 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001562/2.351, allocations: 397.4 kB / 0.9624 GB, free: 36.54 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007924/2.359, allocations: 0.7058 MB / 0.9631 GB, free: 36.53 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04011/2.399, allocations: 14.15 MB / 0.977 GB, free: 36.47 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06427/2.464, allocations: 16.67 MB / 0.9932 GB, free: 34.98 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008394/2.465, allocations: 22.78 kB / 0.9933 GB, free: 34.98 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005092/2.47, allocations: 6.594 kB / 0.9933 GB, free: 34.98 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001207/2.471, allocations: 0.8289 MB / 0.9941 GB, free: 34.95 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1251/2.596, allocations: 60.58 MB / 1.053 GB, free: 7.441 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02795/2.624, allocations: 33.11 MB / 1.086 GB, free: 8.492 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007499/2.632, allocations: 3.944 MB / 1.089 GB, free: 5.602 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3945/3.026, allocations: 9.436 MB / 1.099 GB, free: 74.12 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.357e-05/3.026, allocations: 77.33 kB / 1.099 GB, free: 74.08 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=364): time 6.141e-06/3.026, allocations: 0 / 1.099 GB, free: 74.08 MB / 0.4948 GB Notification: Performance of matching and sorting (n=408): time 0.04049/3.067, allocations: 17.11 MB / 1.115 GB, free: 72.49 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.536e-05/3.067, allocations: 92.27 kB / 1.115 GB, free: 72.43 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007016/3.074, allocations: 3.939 MB / 1.119 GB, free: 72.08 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007944/3.075, allocations: 25.7 kB / 1.119 GB, free: 72.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003274/3.078, allocations: 5.635 MB / 1.125 GB, free: 69.16 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001985/3.08, allocations: 1.361 MB / 1.126 GB, free: 68.29 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004237/3.08, allocations: 0 / 1.126 GB, free: 68.29 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004129/3.081, allocations: 0.5873 MB / 1.127 GB, free: 67.97 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004353/3.085, allocations: 2.861 MB / 1.13 GB, free: 67.95 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006423/3.092, allocations: 5.924 MB / 1.135 GB, free: 64.12 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01135/3.103, allocations: 5.273 MB / 1.141 GB, free: 64.06 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002113/3.103, allocations: 29.56 kB / 1.141 GB, free: 64.06 MB / 0.4948 GB Notification: Performance of matching and sorting (n=900) (initialization): time 0.02547/3.129, allocations: 10.44 MB / 1.151 GB, free: 63.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00012/3.129, allocations: 49.84 kB / 1.151 GB, free: 63.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001921/3.129, allocations: 105.3 kB / 1.151 GB, free: 63.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002475/3.132, allocations: 1.021 MB / 1.152 GB, free: 63.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006172/3.138, allocations: 1.658 MB / 1.153 GB, free: 63.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/3.149, allocations: 9.912 MB / 1.163 GB, free: 59.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007534/3.157, allocations: 323 kB / 1.163 GB, free: 59.69 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001638/3.159, allocations: 369.2 kB / 1.164 GB, free: 59.69 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 480 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (842): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001394/3.16, allocations: 377.7 kB / 1.164 GB, free: 59.52 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001484/3.161, allocations: 0.5117 MB / 1.165 GB, free: 59.25 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01552/3.177, allocations: 7.45 MB / 1.172 GB, free: 58.94 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.174e-05/3.177, allocations: 41.41 kB / 1.172 GB, free: 58.94 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/3.177, allocations: 9.812 kB / 1.172 GB, free: 58.94 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.852e-05/3.177, allocations: 24.06 kB / 1.172 GB, free: 58.94 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03363/3.211, allocations: 15.49 MB / 1.187 GB, free: 58.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/3.211, allocations: 6.688 kB / 1.187 GB, free: 58.13 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003534/3.214, allocations: 0.7885 MB / 1.188 GB, free: 58.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002231/3.217, allocations: 0.8629 MB / 1.189 GB, free: 58.07 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000454/3.217, allocations: 34.36 kB / 1.189 GB, free: 58.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008979/3.226, allocations: 9.074 MB / 1.198 GB, free: 52.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/3.226, allocations: 9.312 kB / 1.198 GB, free: 52.52 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01867/3.245, allocations: 11.15 MB / 1.209 GB, free: 47.55 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003254/3.248, allocations: 1.093 MB / 1.21 GB, free: 46.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001516/3.25, allocations: 10.8 kB / 1.21 GB, free: 46.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003634/3.253, allocations: 211.4 kB / 1.21 GB, free: 46.88 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006283/3.254, allocations: 276.6 kB / 1.21 GB, free: 46.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003005/3.254, allocations: 118.4 kB / 1.21 GB, free: 46.81 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005509/3.26, allocations: 2.847 MB / 1.213 GB, free: 45.68 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.82e-07/3.26, allocations: 0 / 1.213 GB, free: 45.68 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0106/3.27, allocations: 1.781 MB / 1.215 GB, free: 45.64 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (378): * Single equations (assignments): 372 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,62.5%) 46,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001958/3.272, allocations: 0.5906 MB / 1.215 GB, free: 45.45 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01261/3.285, allocations: 7.597 MB / 1.223 GB, free: 41.77 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/3.285, allocations: 5.625 kB / 1.223 GB, free: 41.77 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005794/3.291, allocations: 3.641 MB / 1.226 GB, free: 38.39 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007483/3.298, allocations: 1.065 MB / 1.227 GB, free: 37.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03596/3.334, allocations: 17.23 MB / 1.244 GB, free: 22.19 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009111/3.344, allocations: 7.633 MB / 1.252 GB, free: 16.5 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007069/3.351, allocations: 2.173 MB / 1.254 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00138/3.352, allocations: 406.1 kB / 1.254 GB, free: 14.72 MB / 0.4948 GB Notification: Performance of SimCode: time 6.51e-07/3.352, allocations: 4 kB / 1.254 GB, free: 14.72 MB / 0.4948 GB Notification: Performance of Templates: time 0.4826/3.835, allocations: 70.29 MB / 1.323 GB, free: 56.01 MB / 0.4948 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../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