Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 111.2 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 183.3 kB / 19.34 MB, free: 3.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.23/1.23, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 52.36 kB / 329.2 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06735/0.06853, allocations: 46.63 MB / 375.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1692/0.2377, allocations: 29.2 MB / 405.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01612/0.2539, allocations: 8.535 MB / 413.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003541/0.2575, allocations: 182.8 kB / 413.8 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01663/0.2741, allocations: 8.265 MB / 422 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008154/0.2823, allocations: 3.087 MB / 425.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004133/0.2864, allocations: 1.892 MB / 427 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0105/0.2969, allocations: 10.51 MB / 437.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02365/0.3206, allocations: 21.47 MB / 459 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006415/0.327, allocations: 5.61 MB / 464.6 MB, free: 6.652 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006968/0.334, allocations: 6.373 MB / 471 MB, free: 264 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001889/0.3359, allocations: 1.578 MB / 472.6 MB, free: 14.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003088/0.339, allocations: 1.933 MB / 474.5 MB, free: 12.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002383/0.3414, allocations: 3.195 MB / 477.7 MB, free: 9.543 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005561/0.347, allocations: 6.128 MB / 483.8 MB, free: 3.391 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01684/0.3638, allocations: 21.19 MB / 0.4932 GB, free: 14.14 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3639, allocations: 0 / 0.4932 GB, free: 14.14 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3639, allocations: 0 / 0.4932 GB, free: 14.14 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002679/0.3642, allocations: 0 / 0.4932 GB, free: 14.14 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02925/0.3934, allocations: 12.44 MB / 0.5053 GB, free: 1.602 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.3935, allocations: 15.97 kB / 0.5053 GB, free: 1.586 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04786/0.4413, allocations: 8.595 MB / 0.5137 GB, free: 8.969 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01169/0.453, allocations: 5.903 MB / 0.5195 GB, free: 3.004 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000547/0.4536, allocations: 0.7386 MB / 0.5202 GB, free: 2.262 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002216/0.4558, allocations: 0.9764 MB / 0.5212 GB, free: 1.285 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03089/0.4867, allocations: 16.57 MB / 0.5373 GB, free: 0.625 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002454/0.487, allocations: 11.81 kB / 0.5374 GB, free: 0.6133 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001612/0.4886, allocations: 412 kB / 0.5378 GB, free: 216 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005795/0.4892, allocations: 0.6106 MB / 0.5383 GB, free: 15.6 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3112/0.8004, allocations: 15.97 MB / 0.5539 GB, free: 134.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07028/0.8707, allocations: 51.59 MB / 0.6043 GB, free: 103.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02282/0.8936, allocations: 52.28 MB / 0.6554 GB, free: 49.04 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003942/0.8975, allocations: 3.465 MB / 0.6588 GB, free: 47.27 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01329/0.9109, allocations: 9.379 MB / 0.6679 GB, free: 38.81 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.9109, allocations: 68.61 kB / 0.668 GB, free: 38.73 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 4.268e-06/0.9109, allocations: 0 / 0.668 GB, free: 38.73 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02257/0.9335, allocations: 12.93 MB / 0.6806 GB, free: 25.69 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.558e-05/0.9336, allocations: 81.58 kB / 0.6807 GB, free: 25.6 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004932/0.9385, allocations: 4.068 MB / 0.6847 GB, free: 21.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002012/0.9387, allocations: 69.7 kB / 0.6847 GB, free: 21.43 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001639/0.9404, allocations: 4.627 MB / 0.6892 GB, free: 16.78 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005581/0.9409, allocations: 0.9962 MB / 0.6902 GB, free: 15.79 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001408/0.9423, allocations: 1.233 MB / 0.6914 GB, free: 14.55 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 2.891e-05/0.9424, allocations: 305.1 kB / 0.6917 GB, free: 14.25 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002898/0.9453, allocations: 2.452 MB / 0.6941 GB, free: 11.79 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003841/0.9491, allocations: 5.596 MB / 0.6996 GB, free: 4.656 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008693/0.9578, allocations: 8.69 MB / 0.7081 GB, free: 10.39 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.97e-05/0.9579, allocations: 32 kB / 0.7081 GB, free: 10.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01395/0.9719, allocations: 8.759 MB / 0.7166 GB, free: 1.547 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.824e-05/0.9719, allocations: 52 kB / 0.7167 GB, free: 1.496 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001358/0.9721, allocations: 115.9 kB / 0.7168 GB, free: 1.383 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00234/0.9744, allocations: 0.8718 MB / 0.7176 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00445/0.9789, allocations: 1.4 MB / 0.719 GB, free: 15.11 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/0.9898, allocations: 7.559 MB / 0.7264 GB, free: 7.398 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00407/0.9939, allocations: 355.3 kB / 0.7267 GB, free: 7.051 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006269/0.9945, allocations: 352 kB / 0.7271 GB, free: 6.707 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005369/0.9999, allocations: 3.669 MB / 0.7307 GB, free: 3.023 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008651/1.001, allocations: 414.9 kB / 0.7311 GB, free: 2.613 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008999/1.01, allocations: 5.074 MB / 0.736 GB, free: 13.48 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.037e-05/1.01, allocations: 19.77 kB / 0.736 GB, free: 13.46 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/1.01, allocations: 0 / 0.736 GB, free: 13.46 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001701/1.012, allocations: 0.8004 MB / 0.7368 GB, free: 12.64 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006229/1.012, allocations: 52 kB / 0.7369 GB, free: 12.59 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001844/1.014, allocations: 159.8 kB / 0.737 GB, free: 12.43 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004053/1.014, allocations: 218 kB / 0.7372 GB, free: 12.22 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008362/1.023, allocations: 4.616 MB / 0.7417 GB, free: 7.613 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.008231/1.031, allocations: 5.909 MB / 0.7475 GB, free: 1.629 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.1651/1.196, allocations: 1.819 MB / 0.7493 GB, free: 173.9 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005162/1.201, allocations: 2.674 MB / 0.7519 GB, free: 173.7 MB / 0.5138 GB Notification: Performance of Backend: time 5.71e-07/1.201, allocations: 2.344 kB / 0.7519 GB, free: 173.7 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01033/1.212, allocations: 4.823 MB / 0.7566 GB, free: 172.9 MB / 0.5138 GB Notification: Performance of SimCode: time 0.02356/1.235, allocations: 15.64 MB / 0.7719 GB, free: 165.9 MB / 0.5138 GB Notification: Performance of Templates: time 0.09336/1.329, allocations: 69.64 MB / 0.8399 GB, free: 111.3 MB / 0.5138 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches