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.0012/0.0012, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001312/0.001312, allocations: 206.8 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.629/1.629, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002494/0.002494, allocations: 60.09 kB / 359.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5522/0.5547, allocations: 50.54 MB / 410 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.06275/0.6175, allocations: 28.61 MB / 438.6 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03238/0.6499, allocations: 8.485 MB / 447.1 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01382/0.6638, allocations: 211.4 kB / 447.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.04627/0.7102, allocations: 8.165 MB / 455.4 MB, free: 3.895 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01683/0.727, allocations: 2.789 MB / 458.2 MB, free: 1.094 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01065/0.7377, allocations: 1.873 MB / 460.1 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02444/0.7622, allocations: 10.03 MB / 470.1 MB, free: 5.152 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06984/0.8321, allocations: 21.35 MB / 491.5 MB, free: 15.66 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01356/0.8458, allocations: 5.369 MB / 496.9 MB, free: 10.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01759/0.8634, allocations: 6.081 MB / 0.4911 GB, free: 4.172 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007129/0.8706, allocations: 1.539 MB / 0.4926 GB, free: 2.633 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01012/0.8808, allocations: 1.918 MB / 0.4945 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007716/0.8886, allocations: 2.981 MB / 0.4974 GB, free: 13.72 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01598/0.9046, allocations: 5.852 MB / 0.5031 GB, free: 7.848 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05698/0.9617, allocations: 20.64 MB / 0.5233 GB, free: 3.152 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.9618, allocations: 0 / 0.5233 GB, free: 3.152 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.9618, allocations: 4 kB / 0.5233 GB, free: 3.148 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006503/0.9625, allocations: 0 / 0.5233 GB, free: 3.148 MB / 446.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.08323/1.046, allocations: 11.87 MB / 0.5349 GB, free: 7.176 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.707e-05/1.046, allocations: 15.97 kB / 0.5349 GB, free: 7.16 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1022/1.148, allocations: 5.623 MB / 0.5404 GB, free: 1.52 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7647/1.913, allocations: 6.299 MB / 0.5466 GB, free: 109.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009728/1.914, allocations: 0.6991 MB / 0.5472 GB, free: 108.9 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005625/1.919, allocations: 0.9374 MB / 0.5482 GB, free: 108.6 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06159/1.981, allocations: 15.06 MB / 0.5629 GB, free: 102.1 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005458/1.982, allocations: 17.64 kB / 0.5629 GB, free: 102.1 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004948/1.987, allocations: 394.2 kB / 0.5633 GB, free: 101.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008185/1.988, allocations: 0.5161 MB / 0.5638 GB, free: 101.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04696/2.035, allocations: 13.75 MB / 0.5772 GB, free: 88.32 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1233/2.158, allocations: 47.5 MB / 0.6236 GB, free: 39.93 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02802/2.186, allocations: 28.6 MB / 0.6515 GB, free: 7.652 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007595/2.194, allocations: 3.081 MB / 0.6545 GB, free: 4.566 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007322/2.194, allocations: 326 kB / 0.6548 GB, free: 4.203 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.221e-05/2.195, allocations: 73.52 kB / 0.6549 GB, free: 4.121 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 1.219e-05/2.195, allocations: 0 / 0.6549 GB, free: 4.121 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.05881/2.253, allocations: 14.78 MB / 0.6693 GB, free: 5.262 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/2.254, allocations: 90.48 kB / 0.6694 GB, free: 5.16 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01094/2.265, allocations: 3.603 MB / 0.6729 GB, free: 1.562 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009692/2.266, allocations: 89.7 kB / 0.673 GB, free: 1.469 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004935/2.271, allocations: 4.035 MB / 0.677 GB, free: 13.41 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002727/2.273, allocations: 1.344 MB / 0.6783 GB, free: 12.07 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003645/2.277, allocations: 1.164 MB / 0.6794 GB, free: 10.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/2.277, allocations: 309 kB / 0.6797 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007966/2.285, allocations: 2.592 MB / 0.6822 GB, free: 7.996 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01163/2.297, allocations: 5.084 MB / 0.6872 GB, free: 1.738 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02051/2.317, allocations: 8.344 MB / 0.6954 GB, free: 8.207 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/2.318, allocations: 20 kB / 0.6954 GB, free: 8.188 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0299/2.348, allocations: 8.637 MB / 0.7038 GB, free: 15.52 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001325/2.348, allocations: 40.88 kB / 0.7038 GB, free: 15.48 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002227/2.348, allocations: 84 kB / 0.7039 GB, free: 15.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004333/2.352, allocations: 0.8516 MB / 0.7048 GB, free: 14.55 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007954/2.36, allocations: 1.373 MB / 0.7061 GB, free: 13.17 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02152/2.382, allocations: 7.67 MB / 0.7136 GB, free: 5.359 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009715/2.392, allocations: 339.2 kB / 0.7139 GB, free: 5.027 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002396/2.394, allocations: 304 kB / 0.7142 GB, free: 4.73 MB / 0.5138 GB 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.0128/2.407, allocations: 3.51 MB / 0.7176 GB, free: 1.207 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00232/2.409, allocations: 407 kB / 0.718 GB, free: 0.8047 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02173/2.431, allocations: 5.988 MB / 0.7239 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-05/2.431, allocations: 40 kB / 0.7239 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.255e-05/2.431, allocations: 8 kB / 0.7239 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001322/2.432, allocations: 27.91 kB / 0.7239 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0608/2.492, allocations: 14.94 MB / 0.7385 GB, free: 11.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.242e-05/2.492, allocations: 4.625 kB / 0.7385 GB, free: 11.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005879/2.498, allocations: 0.6904 MB / 0.7392 GB, free: 11 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004218/2.503, allocations: 0.7131 MB / 0.7399 GB, free: 10.29 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009669/2.504, allocations: 91.97 kB / 0.74 GB, free: 10.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0181/2.522, allocations: 6.705 MB / 0.7465 GB, free: 3.367 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.218e-05/2.522, allocations: 8 kB / 0.7466 GB, free: 3.359 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3884/2.91, allocations: 8.754 MB / 0.7551 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00404/2.914, allocations: 0.8753 MB / 0.756 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001467/2.916, allocations: 90.28 kB / 0.756 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004508/2.921, allocations: 182.3 kB / 0.7562 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001089/2.922, allocations: 271 kB / 0.7565 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004883/2.922, allocations: 114.4 kB / 0.7566 GB, free: 183.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007102/2.929, allocations: 2.419 MB / 0.7589 GB, free: 182.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.32e-07/2.929, allocations: 0 / 0.7589 GB, free: 182.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01004/2.939, allocations: 1.554 MB / 0.7605 GB, free: 182.4 MB / 0.545 GB 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.001238/2.941, allocations: 254.5 kB / 0.7607 GB, free: 182.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01715/2.958, allocations: 6.531 MB / 0.7671 GB, free: 179.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.612e-05/2.958, allocations: 3.812 kB / 0.7671 GB, free: 179.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008279/2.966, allocations: 2.949 MB / 0.77 GB, free: 178.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009639/2.976, allocations: 0.9613 MB / 0.7709 GB, free: 178.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04496/3.021, allocations: 15.46 MB / 0.786 GB, free: 171.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01269/3.034, allocations: 5.796 MB / 0.7917 GB, free: 166.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002738/3.037, allocations: 384.2 kB / 0.792 GB, free: 166.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.262e-06/3.037, allocations: 0 / 0.792 GB, free: 166.4 MB / 0.545 GB Notification: Performance of Templates: time 0.7918/3.828, allocations: 152.8 MB / 0.9412 GB, free: 16.34 MB / 0.545 GB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/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