Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00158/0.001581, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002334/0.002334, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002641/0.002641, allocations: 71.81 kB / 307 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1163, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1842/0.3006, allocations: 28.62 MB / 386.2 MB, free: 5.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01637/0.317, allocations: 8.485 MB / 394.7 MB, free: 24 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006519/0.3235, allocations: 220.3 kB / 394.9 MB, free: 15.97 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02079/0.3444, allocations: 8.155 MB / 403 MB, free: 10.76 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01129/0.3557, allocations: 2.789 MB / 405.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005988/0.3617, allocations: 1.884 MB / 407.7 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01283/0.3745, allocations: 9.948 MB / 417.7 MB, free: 252 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03102/0.4056, allocations: 21.44 MB / 439.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007888/0.4135, allocations: 5.346 MB / 444.4 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009839/0.4234, allocations: 6.093 MB / 450.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00403/0.4274, allocations: 1.539 MB / 452.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006096/0.4335, allocations: 1.941 MB / 454 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004636/0.4382, allocations: 2.981 MB / 457 MB, free: 8.723 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01256/0.4508, allocations: 5.848 MB / 462.8 MB, free: 2.852 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03856/0.4894, allocations: 20.53 MB / 483.4 MB, free: 14.26 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.094e-05/0.4895, allocations: 0 / 483.4 MB, free: 14.26 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4895, allocations: 7.938 kB / 483.4 MB, free: 14.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004236/0.4899, allocations: 0 / 483.4 MB, free: 14.25 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.05915/0.5491, allocations: 11.9 MB / 495.3 MB, free: 2.254 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.5492, allocations: 8.031 kB / 495.3 MB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05157/0.6008, allocations: 5.518 MB / 0.4891 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01249/0.6133, allocations: 6.145 MB / 0.4951 GB, free: 6.508 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006344/0.6139, allocations: 0.6986 MB / 0.4958 GB, free: 5.809 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002694/0.6167, allocations: 0.9334 MB / 0.4967 GB, free: 4.875 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02988/0.6465, allocations: 15.1 MB / 0.5114 GB, free: 5.695 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001982/0.6468, allocations: 15.75 kB / 0.5114 GB, free: 5.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00111/0.6479, allocations: 392 kB / 0.5118 GB, free: 5.297 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005589/0.6485, allocations: 0.5194 MB / 0.5123 GB, free: 4.773 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02952/0.678, allocations: 13.77 MB / 0.5257 GB, free: 6.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3452/1.023, allocations: 48.08 MB / 0.5727 GB, free: 104.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01483/1.038, allocations: 28.61 MB / 0.6006 GB, free: 75.91 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004327/1.043, allocations: 3.083 MB / 0.6036 GB, free: 74.35 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003483/1.043, allocations: 346.4 kB / 0.604 GB, free: 74.03 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.501e-05/1.043, allocations: 72.58 kB / 0.604 GB, free: 73.96 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 5.511e-06/1.043, allocations: 0 / 0.604 GB, free: 73.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02475/1.068, allocations: 14.81 MB / 0.6185 GB, free: 61.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/1.068, allocations: 94.48 kB / 0.6186 GB, free: 61.83 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004287/1.072, allocations: 3.603 MB / 0.6221 GB, free: 58.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005369/1.073, allocations: 85.7 kB / 0.6222 GB, free: 58.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001442/1.074, allocations: 4.046 MB / 0.6262 GB, free: 54.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008704/1.075, allocations: 1.343 MB / 0.6275 GB, free: 52.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001334/1.076, allocations: 1.171 MB / 0.6286 GB, free: 51.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.532e-05/1.076, allocations: 301.1 kB / 0.6289 GB, free: 51.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003055/1.079, allocations: 2.6 MB / 0.6314 GB, free: 48.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003976/1.083, allocations: 5.088 MB / 0.6364 GB, free: 42.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007711/1.091, allocations: 8.356 MB / 0.6446 GB, free: 32.85 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-05/1.091, allocations: 24 kB / 0.6446 GB, free: 32.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0125/1.104, allocations: 8.655 MB / 0.653 GB, free: 24.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.603e-05/1.104, allocations: 46.66 kB / 0.6531 GB, free: 24.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001118/1.104, allocations: 80 kB / 0.6532 GB, free: 24.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002103/1.106, allocations: 0.8577 MB / 0.654 GB, free: 23.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004704/1.111, allocations: 1.376 MB / 0.6553 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008489/1.119, allocations: 7.682 MB / 0.6628 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003723/1.123, allocations: 323.3 kB / 0.6631 GB, free: 13.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005941/1.124, allocations: 312 kB / 0.6634 GB, free: 13.33 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004264/1.128, allocations: 3.516 MB / 0.6669 GB, free: 9.801 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000811/1.129, allocations: 411 kB / 0.6673 GB, free: 9.395 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008712/1.137, allocations: 5.988 MB / 0.6731 GB, free: 3.371 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.778e-05/1.138, allocations: 40 kB / 0.6732 GB, free: 3.332 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/1.138, allocations: 8 kB / 0.6732 GB, free: 3.324 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.881e-05/1.138, allocations: 23.91 kB / 0.6732 GB, free: 3.301 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02814/1.166, allocations: 15.3 MB / 0.6881 GB, free: 3.812 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/1.166, allocations: 4 kB / 0.6881 GB, free: 3.809 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00294/1.169, allocations: 0.6982 MB / 0.6888 GB, free: 3.109 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002226/1.171, allocations: 0.7253 MB / 0.6895 GB, free: 2.383 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004551/1.171, allocations: 87.97 kB / 0.6896 GB, free: 2.297 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01073/1.182, allocations: 6.705 MB / 0.6962 GB, free: 11.45 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.104e-05/1.182, allocations: 11.94 kB / 0.6962 GB, free: 11.44 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01556/1.198, allocations: 8.77 MB / 0.7047 GB, free: 2.551 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00236/1.2, allocations: 0.8863 MB / 0.7056 GB, free: 1.641 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006611/1.201, allocations: 72 kB / 0.7057 GB, free: 1.57 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001956/1.203, allocations: 191.9 kB / 0.7058 GB, free: 1.383 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005706/1.203, allocations: 270.5 kB / 0.7061 GB, free: 1.117 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000256/1.204, allocations: 116 kB / 0.7062 GB, free: 1.004 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.2199/1.424, allocations: 2.418 MB / 0.7086 GB, free: 151.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.01e-07/1.424, allocations: 0 / 0.7086 GB, free: 151.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006503/1.43, allocations: 1.553 MB / 0.7101 GB, free: 151.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (smpmQS.phiMechanical) * 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 (377): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007245/1.431, allocations: 267.3 kB / 0.7104 GB, free: 151 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02748/1.458, allocations: 12.88 MB / 0.7229 GB, free: 149.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/1.458, allocations: 0 / 0.7229 GB, free: 149.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004432/1.463, allocations: 2.951 MB / 0.7258 GB, free: 148.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004257/1.467, allocations: 0.9742 MB / 0.7268 GB, free: 148.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02615/1.493, allocations: 15.83 MB / 0.7422 GB, free: 138.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006036/1.499, allocations: 5.973 MB / 0.748 GB, free: 134.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004431/1.504, allocations: 1.884 MB / 0.7499 GB, free: 133 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008356/1.505, allocations: 357.4 kB / 0.7502 GB, free: 132.7 MB / 478.1 MB Notification: Performance of SimCode: time 7.22e-07/1.505, allocations: 0 / 0.7502 GB, free: 132.7 MB / 478.1 MB Notification: Performance of Templates: time 0.09158/1.596, allocations: 62.23 MB / 0.811 GB, free: 73.21 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches