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.001412/0.001412, allocations: 118.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001712/0.001712, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 59.91 kB / 358.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2411, allocations: 50.54 MB / 409.3 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02813/0.2692, allocations: 28.62 MB / 437.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0169/0.2862, allocations: 8.485 MB / 446.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004898/0.2911, allocations: 215.4 kB / 446.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01849/0.3096, allocations: 8.154 MB / 454.8 MB, free: 4.062 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008604/0.3182, allocations: 2.785 MB / 457.5 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004577/0.3228, allocations: 1.882 MB / 459.4 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01062/0.3335, allocations: 10.02 MB / 469.4 MB, free: 5.332 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02753/0.361, allocations: 21.36 MB / 490.8 MB, free: 15.83 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008562/0.3696, allocations: 5.353 MB / 496.2 MB, free: 10.46 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00973/0.3794, allocations: 6.078 MB / 0.4905 GB, free: 4.363 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004397/0.3838, allocations: 1.539 MB / 0.492 GB, free: 2.824 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00604/0.3899, allocations: 1.925 MB / 0.4938 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003827/0.3938, allocations: 2.977 MB / 0.4968 GB, free: 13.91 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007891/0.4017, allocations: 5.856 MB / 0.5025 GB, free: 8.035 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02167/0.4234, allocations: 20.68 MB / 0.5227 GB, free: 3.289 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4234, allocations: 4 kB / 0.5227 GB, free: 3.285 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4234, allocations: 0 / 0.5227 GB, free: 3.285 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004449/0.4239, allocations: 0 / 0.5227 GB, free: 3.285 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.03474/0.4586, allocations: 12.09 MB / 0.5345 GB, free: 7.082 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.4587, allocations: 11.97 kB / 0.5345 GB, free: 7.07 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0305/0.4892, allocations: 5.687 MB / 0.54 GB, free: 1.371 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4031/0.8923, allocations: 6.315 MB / 0.5462 GB, free: 109.5 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003564/0.8927, allocations: 0.6967 MB / 0.5469 GB, free: 109.2 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003023/0.8957, allocations: 0.9352 MB / 0.5478 GB, free: 108.9 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02656/0.9223, allocations: 15.06 MB / 0.5625 GB, free: 102.4 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002111/0.9226, allocations: 27.66 kB / 0.5625 GB, free: 102.4 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001103/0.9237, allocations: 390.9 kB / 0.5629 GB, free: 102.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003262/0.924, allocations: 0.511 MB / 0.5634 GB, free: 102 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01988/0.9439, allocations: 13.74 MB / 0.5768 GB, free: 88.5 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06984/1.014, allocations: 47.64 MB / 0.6234 GB, free: 40.36 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01511/1.029, allocations: 28.59 MB / 0.6513 GB, free: 8.086 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004276/1.033, allocations: 3.081 MB / 0.6543 GB, free: 5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005143/1.034, allocations: 325.3 kB / 0.6546 GB, free: 4.641 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.605e-05/1.034, allocations: 77.52 kB / 0.6547 GB, free: 4.555 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 7.544e-06/1.034, allocations: 0 / 0.6547 GB, free: 4.555 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03222/1.066, allocations: 14.9 MB / 0.6692 GB, free: 5.758 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.808e-05/1.066, allocations: 94.42 kB / 0.6693 GB, free: 5.652 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006145/1.072, allocations: 3.599 MB / 0.6728 GB, free: 2.059 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003841/1.073, allocations: 93.7 kB / 0.6729 GB, free: 1.961 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002638/1.075, allocations: 4.183 MB / 0.677 GB, free: 13.76 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001231/1.077, allocations: 1.408 MB / 0.6784 GB, free: 12.37 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001653/1.078, allocations: 1.172 MB / 0.6795 GB, free: 11.19 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.689e-05/1.078, allocations: 301.1 kB / 0.6798 GB, free: 10.89 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003735/1.082, allocations: 2.588 MB / 0.6823 GB, free: 8.297 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005376/1.088, allocations: 5.084 MB / 0.6873 GB, free: 2.039 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009917/1.097, allocations: 8.34 MB / 0.6954 GB, free: 8.512 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.307e-05/1.098, allocations: 24 kB / 0.6955 GB, free: 8.488 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0137/1.111, allocations: 8.668 MB / 0.7039 GB, free: 15.8 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.584e-05/1.111, allocations: 40 kB / 0.704 GB, free: 15.76 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001142/1.111, allocations: 88 kB / 0.7041 GB, free: 15.67 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002326/1.114, allocations: 0.85 MB / 0.7049 GB, free: 14.82 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004322/1.118, allocations: 1.373 MB / 0.7062 GB, free: 13.45 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01076/1.129, allocations: 7.681 MB / 0.7137 GB, free: 5.621 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004219/1.133, allocations: 335.4 kB / 0.714 GB, free: 5.293 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000622/1.134, allocations: 304 kB / 0.7143 GB, free: 4.996 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.005871/1.14, allocations: 3.517 MB / 0.7178 GB, free: 1.465 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/1.141, allocations: 421.3 kB / 0.7182 GB, free: 1.051 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009872/1.151, allocations: 5.988 MB / 0.724 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.751e-05/1.151, allocations: 40 kB / 0.7241 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.475e-05/1.151, allocations: 11.98 kB / 0.7241 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.762e-05/1.151, allocations: 23.91 kB / 0.7241 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02304/1.174, allocations: 14.96 MB / 0.7387 GB, free: 11.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.475e-05/1.174, allocations: 4 kB / 0.7387 GB, free: 11.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002534/1.176, allocations: 0.6865 MB / 0.7394 GB, free: 11.24 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001954/1.178, allocations: 0.7095 MB / 0.7401 GB, free: 10.53 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002257/1.179, allocations: 83.97 kB / 0.7402 GB, free: 10.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008844/1.187, allocations: 6.714 MB / 0.7467 GB, free: 3.605 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/1.187, allocations: 11.94 kB / 0.7467 GB, free: 3.594 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2635/1.451, allocations: 8.77 MB / 0.7553 GB, free: 184.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00208/1.453, allocations: 0.9051 MB / 0.7562 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004999/1.454, allocations: 71.81 kB / 0.7562 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/1.455, allocations: 188.5 kB / 0.7564 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004652/1.456, allocations: 266 kB / 0.7567 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002098/1.456, allocations: 115.2 kB / 0.7568 GB, free: 183.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003143/1.459, allocations: 2.416 MB / 0.7591 GB, free: 182.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.71e-07/1.459, allocations: 0 / 0.7591 GB, free: 182.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004831/1.464, allocations: 1.551 MB / 0.7607 GB, free: 182.5 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.0005177/1.464, allocations: 263.1 kB / 0.7609 GB, free: 182.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008352/1.473, allocations: 6.554 MB / 0.7673 GB, free: 179.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/1.473, allocations: 0 / 0.7673 GB, free: 179.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003638/1.477, allocations: 2.952 MB / 0.7702 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.004072/1.481, allocations: 0.9624 MB / 0.7711 GB, free: 178.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02286/1.503, allocations: 15.95 MB / 0.7867 GB, free: 171 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007562/1.511, allocations: 5.973 MB / 0.7925 GB, free: 166.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00543/1.517, allocations: 1.891 MB / 0.7944 GB, free: 165.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001253/1.518, allocations: 341.9 kB / 0.7947 GB, free: 164.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.022e-06/1.518, allocations: 4 kB / 0.7947 GB, free: 164.8 MB / 0.545 GB Notification: Performance of Templates: time 0.08596/1.604, allocations: 60.15 MB / 0.8534 GB, free: 106.8 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/jenkins/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/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