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.0008494/0.0008494, allocations: 97.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009669/0.000967, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.7 MB / 247.5 MB, free: 9.465 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002415/0.0002416, allocations: 4 kB / 308.4 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08997/0.09024, allocations: 51.53 MB / 359.9 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2127/0.303, allocations: 35.78 MB / 395.7 MB, free: 164 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02514/0.3282, allocations: 10.1 MB / 405.8 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009788/0.338, allocations: 255.5 kB / 406.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00934/0.3474, allocations: 2.394 MB / 408.5 MB, free: 7.605 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01547/0.3629, allocations: 3.555 MB / 412 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00787/0.3708, allocations: 2.058 MB / 414.1 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02197/0.3928, allocations: 14.48 MB / 428.6 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04651/0.4393, allocations: 24.61 MB / 453.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00991/0.4493, allocations: 5.109 MB / 458.3 MB, free: 9.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01076/0.4601, allocations: 6.146 MB / 464.4 MB, free: 2.988 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00369/0.4639, allocations: 0.793 MB / 465.2 MB, free: 2.195 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006418/0.4703, allocations: 1.214 MB / 466.4 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004475/0.4748, allocations: 2.561 MB / 469 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01195/0.4868, allocations: 6.229 MB / 475.2 MB, free: 8.145 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02609/0.5129, allocations: 22.71 MB / 497.9 MB, free: 1.375 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.513, allocations: 0 / 497.9 MB, free: 1.375 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.513, allocations: 0 / 497.9 MB, free: 1.375 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0008414/0.5138, allocations: 0 / 497.9 MB, free: 1.375 MB / 398.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.04108/0.5549, allocations: 13.29 MB / 0.4992 GB, free: 3.973 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.555, allocations: 8.031 kB / 0.4992 GB, free: 3.965 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03573/0.5907, allocations: 6.443 MB / 0.5055 GB, free: 13.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01744/0.6082, allocations: 8.343 MB / 0.5137 GB, free: 5.078 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001018/0.6093, allocations: 0.9071 MB / 0.5146 GB, free: 4.168 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004017/0.6133, allocations: 1.199 MB / 0.5157 GB, free: 2.969 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04576/0.6591, allocations: 18.79 MB / 0.5341 GB, free: 76 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000574/0.6597, allocations: 19.81 kB / 0.5341 GB, free: 56 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.3662/1.026, allocations: 0.4901 MB / 0.5346 GB, free: 125.1 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009474/1.027, allocations: 0.6502 MB / 0.5352 GB, free: 125.1 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03767/1.065, allocations: 17.03 MB / 0.5519 GB, free: 119.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0935/1.158, allocations: 64.15 MB / 0.6145 GB, free: 64.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02263/1.181, allocations: 30.02 MB / 0.6438 GB, free: 30.65 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005849/1.187, allocations: 4.111 MB / 0.6478 GB, free: 26.53 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01589/1.203, allocations: 10.5 MB / 0.6581 GB, free: 15.99 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.135e-05/1.203, allocations: 85.73 kB / 0.6582 GB, free: 15.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=408): time 6.202e-06/1.203, allocations: 0 / 0.6582 GB, free: 15.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=418): time 0.04123/1.244, allocations: 20.46 MB / 0.6782 GB, free: 11.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.348e-05/1.244, allocations: 120.4 kB / 0.6783 GB, free: 10.95 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008242/1.252, allocations: 5.19 MB / 0.6833 GB, free: 5.77 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007853/1.253, allocations: 93.7 kB / 0.6834 GB, free: 5.672 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003628/1.257, allocations: 5.36 MB / 0.6887 GB, free: 284 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001861/1.259, allocations: 1.442 MB / 0.6901 GB, free: 14.84 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007895/1.26, allocations: 0.5041 MB / 0.6906 GB, free: 14.33 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/1.26, allocations: 301.1 kB / 0.6908 GB, free: 14.04 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004554/1.264, allocations: 2.898 MB / 0.6937 GB, free: 11.13 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006193/1.27, allocations: 5.4 MB / 0.699 GB, free: 4.578 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01161/1.282, allocations: 8.83 MB / 0.7076 GB, free: 10.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.138e-05/1.282, allocations: 24 kB / 0.7076 GB, free: 10.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.01794/1.3, allocations: 9.786 MB / 0.7172 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.849e-05/1.3, allocations: 45.03 kB / 0.7172 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001406/1.3, allocations: 80 kB / 0.7173 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2383/1.539, allocations: 1.113 MB / 0.7184 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006658/1.545, allocations: 1.451 MB / 0.7198 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01754/1.563, allocations: 12.53 MB / 0.732 GB, free: 146.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006995/1.57, allocations: 363.1 kB / 0.7324 GB, free: 146.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001886/1.572, allocations: 322.8 kB / 0.7327 GB, free: 146.8 MB / 494.1 MB 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 (767): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.01154/1.584, allocations: 4.242 MB / 0.7368 GB, free: 144.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002631/1.586, allocations: 0.5294 MB / 0.7373 GB, free: 144.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0168/1.603, allocations: 7.186 MB / 0.7443 GB, free: 141.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00625/1.609, allocations: 4.313 MB / 0.7486 GB, free: 139.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.234e-05/1.609, allocations: 15.72 kB / 0.7486 GB, free: 139.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.32e-05/1.609, allocations: 30.8 kB / 0.7486 GB, free: 139.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02816/1.638, allocations: 17.12 MB / 0.7653 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-05/1.638, allocations: 7.812 kB / 0.7653 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002758/1.64, allocations: 0.6878 MB / 0.766 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002964/1.643, allocations: 1.184 MB / 0.7672 GB, free: 132.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004313/1.644, allocations: 102.6 kB / 0.7672 GB, free: 132.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01505/1.659, allocations: 16.05 MB / 0.7829 GB, free: 119.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/1.659, allocations: 4 kB / 0.7829 GB, free: 119.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01501/1.674, allocations: 10.44 MB / 0.7931 GB, free: 110.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003053/1.677, allocations: 1.143 MB / 0.7942 GB, free: 109.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001012/1.678, allocations: 79.98 kB / 0.7943 GB, free: 109.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002565/1.681, allocations: 219.8 kB / 0.7945 GB, free: 109.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006683/1.681, allocations: 307.4 kB / 0.7948 GB, free: 108.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002418/1.682, allocations: 120 kB / 0.7949 GB, free: 108.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005174/1.687, allocations: 3.489 MB / 0.7983 GB, free: 105.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.687, allocations: 3.844 kB / 0.7983 GB, free: 105.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008356/1.695, allocations: 1.962 MB / 0.8003 GB, free: 103.3 MB / 494.1 MB 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 (356): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,48.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.0009476/1.696, allocations: 290.6 kB / 0.8005 GB, free: 103 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01197/1.708, allocations: 7.794 MB / 0.8081 GB, free: 95.14 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.546e-05/1.708, allocations: 8 kB / 0.8082 GB, free: 95.13 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00705/1.715, allocations: 4.16 MB / 0.8122 GB, free: 90.89 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01149/1.727, allocations: 1.361 MB / 0.8135 GB, free: 89.57 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04185/1.769, allocations: 25.57 MB / 0.8385 GB, free: 63.91 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008156/1.777, allocations: 7.143 MB / 0.8455 GB, free: 56.73 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002081/1.779, allocations: 459.3 kB / 0.8459 GB, free: 56.29 MB / 494.1 MB Notification: Performance of SimCode: time 1.132e-06/1.779, allocations: 0 / 0.8459 GB, free: 56.29 MB / 494.1 MB Notification: Performance of Templates: time 1.233/3.012, allocations: 0.4935 GB / 1.339 GB, free: 131 MB / 0.5138 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