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.00154/0.00154, allocations: 117.2 kB / 17.79 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.00186/0.00186, allocations: 208.5 kB / 18.74 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.89 kB / 358.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2641, allocations: 50.54 MB / 409.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02998/0.2941, allocations: 28.61 MB / 437.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01584/0.31, allocations: 8.481 MB / 446.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004888/0.315, allocations: 215.4 kB / 446.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01964/0.3346, allocations: 8.229 MB / 454.8 MB, free: 3.828 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008917/0.3436, allocations: 2.828 MB / 457.7 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005859/0.3494, allocations: 1.894 MB / 459.5 MB, free: 15.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01269/0.3621, allocations: 10.03 MB / 469.6 MB, free: 5.035 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03429/0.3965, allocations: 21.36 MB / 490.9 MB, free: 15.54 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008808/0.4053, allocations: 5.373 MB / 496.3 MB, free: 10.15 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009439/0.4148, allocations: 6.074 MB / 0.4906 GB, free: 4.059 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004056/0.4189, allocations: 1.539 MB / 0.4921 GB, free: 2.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005669/0.4246, allocations: 1.925 MB / 0.494 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004487/0.4291, allocations: 2.985 MB / 0.4969 GB, free: 13.6 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01178/0.4409, allocations: 5.852 MB / 0.5026 GB, free: 7.727 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03726/0.4782, allocations: 20.64 MB / 0.5228 GB, free: 3.031 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.064e-05/0.4783, allocations: 4 kB / 0.5228 GB, free: 3.027 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4783, allocations: 0 / 0.5228 GB, free: 3.027 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006303/0.4789, allocations: 0 / 0.5228 GB, free: 3.027 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.03931/0.5183, allocations: 11.87 MB / 0.5344 GB, free: 7.059 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.5183, allocations: 11.97 kB / 0.5344 GB, free: 7.047 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03151/0.5498, allocations: 5.643 MB / 0.5399 GB, free: 1.387 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4552/1.005, allocations: 6.293 MB / 0.546 GB, free: 109.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007432/1.006, allocations: 0.7047 MB / 0.5467 GB, free: 108.9 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003802/1.01, allocations: 0.9235 MB / 0.5476 GB, free: 108.6 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04479/1.054, allocations: 15.07 MB / 0.5623 GB, free: 102.1 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004948/1.055, allocations: 15.61 kB / 0.5623 GB, free: 102.1 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003705/1.059, allocations: 394.6 kB / 0.5627 GB, free: 101.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006684/1.059, allocations: 0.5126 MB / 0.5632 GB, free: 101.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03405/1.093, allocations: 13.75 MB / 0.5767 GB, free: 88.23 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0702/1.164, allocations: 47.5 MB / 0.623 GB, free: 39.84 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01511/1.179, allocations: 28.61 MB / 0.651 GB, free: 7.551 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0042/1.183, allocations: 3.081 MB / 0.654 GB, free: 4.469 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003889/1.184, allocations: 329.3 kB / 0.6543 GB, free: 4.102 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.029e-05/1.184, allocations: 69.58 kB / 0.6544 GB, free: 4.023 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 6.392e-06/1.184, allocations: 0 / 0.6544 GB, free: 4.023 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.02831/1.212, allocations: 14.78 MB / 0.6688 GB, free: 5.168 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.778e-05/1.212, allocations: 90.48 kB / 0.6689 GB, free: 5.066 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005556/1.218, allocations: 3.603 MB / 0.6724 GB, free: 1.469 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004539/1.218, allocations: 89.7 kB / 0.6725 GB, free: 1.375 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002643/1.221, allocations: 4.042 MB / 0.6764 GB, free: 13.31 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00135/1.222, allocations: 1.338 MB / 0.6777 GB, free: 11.98 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00164/1.224, allocations: 1.164 MB / 0.6789 GB, free: 10.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.258e-05/1.224, allocations: 309.1 kB / 0.6792 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003696/1.228, allocations: 2.592 MB / 0.6817 GB, free: 7.902 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005311/1.233, allocations: 5.084 MB / 0.6867 GB, free: 1.645 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009728/1.243, allocations: 8.34 MB / 0.6948 GB, free: 8.117 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-05/1.243, allocations: 24 kB / 0.6948 GB, free: 8.094 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01435/1.257, allocations: 8.639 MB / 0.7033 GB, free: 15.43 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.211e-05/1.257, allocations: 42.66 kB / 0.7033 GB, free: 15.39 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001397/1.257, allocations: 88.06 kB / 0.7034 GB, free: 15.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002225/1.259, allocations: 0.842 MB / 0.7042 GB, free: 14.46 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004559/1.264, allocations: 1.373 MB / 0.7056 GB, free: 13.08 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01079/1.275, allocations: 7.675 MB / 0.7131 GB, free: 5.262 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004356/1.279, allocations: 331.3 kB / 0.7134 GB, free: 4.938 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001069/1.28, allocations: 304 kB / 0.7137 GB, free: 4.641 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.00649/1.287, allocations: 3.509 MB / 0.7171 GB, free: 1.117 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001267/1.288, allocations: 407 kB / 0.7175 GB, free: 0.7148 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01124/1.299, allocations: 5.988 MB / 0.7233 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.057e-05/1.299, allocations: 40 kB / 0.7234 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.022e-05/1.299, allocations: 12 kB / 0.7234 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-05/1.299, allocations: 19.92 kB / 0.7234 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02792/1.327, allocations: 14.95 MB / 0.738 GB, free: 11.61 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.986e-05/1.327, allocations: 4 kB / 0.738 GB, free: 11.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002794/1.33, allocations: 0.6944 MB / 0.7387 GB, free: 10.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002149/1.332, allocations: 0.7209 MB / 0.7394 GB, free: 10.18 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004069/1.333, allocations: 79.98 kB / 0.7395 GB, free: 10.11 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009686/1.343, allocations: 6.702 MB / 0.746 GB, free: 3.266 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.249e-05/1.343, allocations: 15.92 kB / 0.746 GB, free: 3.25 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2829/1.625, allocations: 8.754 MB / 0.7546 GB, free: 184.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002497/1.628, allocations: 0.8824 MB / 0.7554 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007852/1.629, allocations: 76.19 kB / 0.7555 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001933/1.631, allocations: 183.7 kB / 0.7557 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004789/1.631, allocations: 274 kB / 0.7559 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002141/1.631, allocations: 110.1 kB / 0.756 GB, free: 183.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00339/1.635, allocations: 2.416 MB / 0.7584 GB, free: 182.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.9e-07/1.635, allocations: 0 / 0.7584 GB, free: 182.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006341/1.641, allocations: 1.554 MB / 0.7599 GB, free: 182.6 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.0008257/1.642, allocations: 261.8 kB / 0.7602 GB, free: 182.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009587/1.652, allocations: 6.539 MB / 0.7666 GB, free: 180 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.898e-06/1.652, allocations: 0 / 0.7666 GB, free: 180 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004313/1.656, allocations: 2.939 MB / 0.7694 GB, free: 178.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004769/1.661, allocations: 0.9576 MB / 0.7704 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02578/1.687, allocations: 15.71 MB / 0.7857 GB, free: 171.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006369/1.693, allocations: 5.979 MB / 0.7915 GB, free: 166.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004745/1.698, allocations: 1.882 MB / 0.7934 GB, free: 165.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001082/1.699, allocations: 349.6 kB / 0.7937 GB, free: 164.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.112e-06/1.699, allocations: 4 kB / 0.7937 GB, free: 164.8 MB / 0.545 GB Notification: Performance of Templates: time 0.09288/1.792, allocations: 60.14 MB / 0.8524 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