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.0009774/0.0009775, allocations: 95.09 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002292/0.0002292, allocations: 8 kB / 308.4 MB, free: 0.7539 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0918/0.09204, allocations: 51.53 MB / 359.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2172/0.3093, allocations: 39.45 MB / 399.4 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03008/0.3394, allocations: 10.96 MB / 410.4 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.012/0.3515, allocations: 295.8 kB / 410.6 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009637/0.3612, allocations: 2.263 MB / 412.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01523/0.3764, allocations: 3.214 MB / 416.1 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007772/0.3842, allocations: 2.057 MB / 418.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01882/0.4031, allocations: 13.49 MB / 431.7 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04615/0.4493, allocations: 24.33 MB / 456 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009403/0.4587, allocations: 4.895 MB / 460.9 MB, free: 6.406 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01069/0.4694, allocations: 6.095 MB / 467 MB, free: 292 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003576/0.4731, allocations: 0.7813 MB / 467.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006508/0.4796, allocations: 1.195 MB / 469 MB, free: 14.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005156/0.4848, allocations: 2.561 MB / 471.5 MB, free: 11.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01371/0.4986, allocations: 6.166 MB / 477.7 MB, free: 5.535 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02511/0.5237, allocations: 22.19 MB / 499.9 MB, free: 15.29 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.5238, allocations: 4 kB / 499.9 MB, free: 15.28 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.5238, allocations: 4 kB / 499.9 MB, free: 15.28 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0008662/0.5246, allocations: 0 / 499.9 MB, free: 15.28 MB / 414.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.03818/0.5628, allocations: 12.82 MB / 0.5007 GB, free: 2.348 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.5629, allocations: 8.031 kB / 0.5007 GB, free: 2.34 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03432/0.5972, allocations: 6.224 MB / 0.5068 GB, free: 12.09 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01973/0.617, allocations: 8.026 MB / 0.5146 GB, free: 3.988 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001152/0.6182, allocations: 0.9429 MB / 0.5155 GB, free: 3.043 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004698/0.6229, allocations: 1.234 MB / 0.5167 GB, free: 1.809 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.44/1.063, allocations: 19.02 MB / 0.5353 GB, free: 118.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006603/1.064, allocations: 20.89 kB / 0.5353 GB, free: 118.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003832/1.067, allocations: 0.5061 MB / 0.5358 GB, free: 118.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001067/1.069, allocations: 0.6573 MB / 0.5365 GB, free: 118.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04312/1.112, allocations: 17.03 MB / 0.5531 GB, free: 113 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1019/1.214, allocations: 61.58 MB / 0.6132 GB, free: 64.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02048/1.234, allocations: 33.47 MB / 0.6459 GB, free: 27.48 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005732/1.24, allocations: 3.848 MB / 0.6497 GB, free: 23.63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01418/1.254, allocations: 9.127 MB / 0.6586 GB, free: 14.47 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.952e-05/1.254, allocations: 73.41 kB / 0.6587 GB, free: 14.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 5.27e-06/1.254, allocations: 0 / 0.6587 GB, free: 14.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.03421/1.288, allocations: 17.8 MB / 0.6761 GB, free: 12.46 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.748e-05/1.289, allocations: 94.58 kB / 0.6761 GB, free: 12.36 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009123/1.298, allocations: 5.253 MB / 0.6813 GB, free: 7.125 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008868/1.299, allocations: 89.7 kB / 0.6814 GB, free: 7.031 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004022/1.303, allocations: 5.618 MB / 0.6868 GB, free: 1.383 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001884/1.305, allocations: 1.41 MB / 0.6882 GB, free: 15.99 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008482/1.305, allocations: 0.5364 MB / 0.6887 GB, free: 15.45 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/1.306, allocations: 301.1 kB / 0.689 GB, free: 15.15 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004864/1.31, allocations: 2.977 MB / 0.6919 GB, free: 12.17 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007026/1.318, allocations: 6.015 MB / 0.6978 GB, free: 4.723 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01263/1.33, allocations: 9.667 MB / 0.7073 GB, free: 9.582 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.834e-05/1.33, allocations: 39.94 kB / 0.7073 GB, free: 9.543 MB / 494.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.2557/1.586, allocations: 10.08 MB / 0.7171 GB, free: 149.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001654/1.586, allocations: 48.66 kB / 0.7172 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002838/1.587, allocations: 102.2 kB / 0.7173 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00316/1.59, allocations: 0.9463 MB / 0.7182 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006714/1.596, allocations: 1.628 MB / 0.7198 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0129/1.609, allocations: 9.505 MB / 0.7291 GB, free: 145.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006042/1.615, allocations: 420.9 kB / 0.7295 GB, free: 145.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00158/1.617, allocations: 362.7 kB / 0.7298 GB, free: 145.5 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.009951/1.627, allocations: 4.311 MB / 0.734 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001834/1.629, allocations: 0.5403 MB / 0.7346 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01332/1.642, allocations: 6.675 MB / 0.7411 GB, free: 140.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.913e-05/1.642, allocations: 43.34 kB / 0.7411 GB, free: 140.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.993e-05/1.642, allocations: 10.31 kB / 0.7411 GB, free: 140.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.137e-05/1.642, allocations: 19.12 kB / 0.7411 GB, free: 140.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03298/1.675, allocations: 16.27 MB / 0.757 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-05/1.675, allocations: 3.938 kB / 0.757 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003278/1.679, allocations: 0.7701 MB / 0.7578 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002204/1.681, allocations: 0.7973 MB / 0.7586 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005272/1.681, allocations: 90.08 kB / 0.7587 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009043/1.691, allocations: 8.662 MB / 0.7671 GB, free: 128.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/1.691, allocations: 7.906 kB / 0.7671 GB, free: 128.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01505/1.706, allocations: 9.792 MB / 0.7767 GB, free: 124.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002876/1.709, allocations: 1.117 MB / 0.7778 GB, free: 123.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00146/1.71, allocations: 81.33 kB / 0.7779 GB, free: 123.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003184/1.713, allocations: 234.3 kB / 0.7781 GB, free: 123.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007055/1.714, allocations: 275.3 kB / 0.7783 GB, free: 123.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003913/1.714, allocations: 114.6 kB / 0.7784 GB, free: 123.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007138/1.722, allocations: 3.509 MB / 0.7819 GB, free: 120.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.31e-07/1.722, allocations: 0 / 0.7819 GB, free: 120.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009006/1.731, allocations: 1.949 MB / 0.7838 GB, free: 118.4 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.001073/1.732, allocations: 272.7 kB / 0.784 GB, free: 118.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01255/1.744, allocations: 7.835 MB / 0.7917 GB, free: 110.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/1.744, allocations: 0 / 0.7917 GB, free: 110.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005739/1.75, allocations: 3.64 MB / 0.7952 GB, free: 106.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0115/1.762, allocations: 1.324 MB / 0.7965 GB, free: 105.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04591/1.808, allocations: 25.47 MB / 0.8214 GB, free: 80.04 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01203/1.82, allocations: 7.205 MB / 0.8284 GB, free: 72.79 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002418/1.822, allocations: 487.3 kB / 0.8289 GB, free: 72.31 MB / 494.1 MB Notification: Performance of SimCode: time 2.315e-06/1.822, allocations: 0 / 0.8289 GB, free: 72.31 MB / 494.1 MB Notification: Performance of Templates: time 1.202/3.024, allocations: 472.2 MB / 1.29 GB, free: 165.2 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