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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00192/0.00192, allocations: 85.78 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002342/0.002342, allocations: 158.4 kB / 23.95 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 177 MB / 204.1 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] 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=1000,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=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.042e-06/1.042e-06, allocations: 0 / 325.1 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.714e-05/1.818e-05, allocations: 2.281 kB / 325.1 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03018/0.0302, allocations: 24.66 MB / 349.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0182/0.0484, allocations: 8.178 MB / 357.9 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005296/0.05369, allocations: 254.8 kB / 358.1 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02036/0.07405, allocations: 8.058 MB / 366.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01014/0.08419, allocations: 2.895 MB / 369.1 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005608/0.0898, allocations: 1.857 MB / 371 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01559/0.1054, allocations: 10.43 MB / 381.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02712/0.1325, allocations: 13.9 MB / 395.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01494/0.1475, allocations: 8.12 MB / 403.4 MB, free: 6.367 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01215/0.1596, allocations: 5.259 MB / 408.7 MB, free: 1.098 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004833/0.1644, allocations: 1.539 MB / 410.2 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007315/0.1718, allocations: 1.917 MB / 412.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006033/0.1778, allocations: 3.047 MB / 415.2 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01198/0.1898, allocations: 3.918 MB / 419.1 MB, free: 6.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03086/0.2206, allocations: 20.94 MB / 440 MB, free: 1.664 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.2206, allocations: 0 / 440 MB, free: 1.664 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2206, allocations: 0 / 440 MB, free: 1.664 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004013/0.221, allocations: 0 / 440 MB, free: 1.664 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.04826/0.2693, allocations: 11.92 MB / 452 MB, free: 5.648 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.2694, allocations: 12.03 kB / 452 MB, free: 5.637 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04167/0.311, allocations: 5.601 MB / 457.6 MB, free: 24 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01465/0.3257, allocations: 6.371 MB / 463.9 MB, free: 9.582 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008864/0.3266, allocations: 0.7104 MB / 464.6 MB, free: 8.871 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003812/0.3304, allocations: 0.9218 MB / 465.6 MB, free: 7.949 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3392/0.6695, allocations: 15.25 MB / 480.8 MB, free: 110.2 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003759/0.6699, allocations: 13.3 kB / 480.8 MB, free: 110.2 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00205/0.672, allocations: 390.6 kB / 481.2 MB, free: 109.9 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005999/0.6726, allocations: 0.5138 MB / 481.7 MB, free: 109.8 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02691/0.6995, allocations: 13.72 MB / 495.4 MB, free: 104 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08426/0.7837, allocations: 41.37 MB / 0.5242 GB, free: 66.8 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01257/0.7963, allocations: 7.97 MB / 0.532 GB, free: 60.09 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003659/0.8, allocations: 2.802 MB / 0.5347 GB, free: 57.29 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003187/0.8003, allocations: 94.92 kB / 0.5348 GB, free: 57.2 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.329e-05/0.8003, allocations: 77.52 kB / 0.5349 GB, free: 57.11 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 6.773e-06/0.8003, allocations: 0 / 0.5349 GB, free: 57.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.02613/0.8265, allocations: 14.69 MB / 0.5493 GB, free: 42.8 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.8265, allocations: 98.42 kB / 0.5493 GB, free: 42.69 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004282/0.8308, allocations: 3.554 MB / 0.5528 GB, free: 39.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00029/0.8311, allocations: 93.7 kB / 0.5529 GB, free: 39.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001463/0.8325, allocations: 4.17 MB / 0.557 GB, free: 35.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007963/0.8333, allocations: 1.393 MB / 0.5583 GB, free: 33.69 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001521/0.8349, allocations: 1.164 MB / 0.5595 GB, free: 32.52 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.463e-05/0.8349, allocations: 305.1 kB / 0.5598 GB, free: 32.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00319/0.8381, allocations: 2.588 MB / 0.5623 GB, free: 29.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003982/0.8421, allocations: 5.112 MB / 0.5673 GB, free: 23.33 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007809/0.8499, allocations: 8.344 MB / 0.5754 GB, free: 13.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.449e-05/0.8499, allocations: 28 kB / 0.5755 GB, free: 13.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01232/0.8623, allocations: 8.618 MB / 0.5839 GB, free: 5.117 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.854e-05/0.8623, allocations: 40 kB / 0.5839 GB, free: 5.078 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001039/0.8624, allocations: 84 kB / 0.584 GB, free: 4.996 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002183/0.8646, allocations: 0.8358 MB / 0.5848 GB, free: 4.164 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00431/0.8689, allocations: 1.373 MB / 0.5862 GB, free: 2.789 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01133/0.8803, allocations: 7.353 MB / 0.5933 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004233/0.8845, allocations: 327.5 kB / 0.5936 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009387/0.8854, allocations: 312 kB / 0.5939 GB, free: 10.71 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.006937/0.8924, allocations: 3.521 MB / 0.5974 GB, free: 7.176 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00125/0.8936, allocations: 413.4 kB / 0.5978 GB, free: 6.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01235/0.906, allocations: 5.946 MB / 0.6036 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.724e-05/0.906, allocations: 40 kB / 0.6036 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.291e-05/0.906, allocations: 15.94 kB / 0.6036 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-05/0.9061, allocations: 19.92 kB / 0.6037 GB, free: 0.707 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02897/0.935, allocations: 13.01 MB / 0.6164 GB, free: 3.652 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.658e-05/0.9351, allocations: 12.56 kB / 0.6164 GB, free: 3.641 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003238/0.9383, allocations: 0.6943 MB / 0.617 GB, free: 2.945 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002288/0.9406, allocations: 0.6936 MB / 0.6177 GB, free: 2.25 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004731/0.9411, allocations: 91.97 kB / 0.6178 GB, free: 2.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01069/0.9518, allocations: 6.379 MB / 0.624 GB, free: 11.68 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.9518, allocations: 4 kB / 0.624 GB, free: 11.68 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01656/0.9683, allocations: 8.737 MB / 0.6326 GB, free: 2.812 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002416/0.9707, allocations: 0.8328 MB / 0.6334 GB, free: 1.977 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008342/0.9716, allocations: 72 kB / 0.6335 GB, free: 1.906 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002223/0.9738, allocations: 183.9 kB / 0.6336 GB, free: 1.727 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00068/0.9745, allocations: 290.4 kB / 0.6339 GB, free: 1.441 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003247/0.9748, allocations: 116 kB / 0.634 GB, free: 1.328 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004364/0.9792, allocations: 2.283 MB / 0.6363 GB, free: 15.05 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.9792, allocations: 0 / 0.6363 GB, free: 15.05 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006423/0.9856, allocations: 1.543 MB / 0.6378 GB, free: 13.51 MB / 494.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.0009169/0.9865, allocations: 275 kB / 0.638 GB, free: 13.23 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01189/0.9984, allocations: 6.265 MB / 0.6441 GB, free: 6.965 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/0.9984, allocations: 4 kB / 0.6441 GB, free: 6.961 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005127/1.004, allocations: 2.72 MB / 0.6468 GB, free: 4.234 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005325/1.009, allocations: 0.8999 MB / 0.6477 GB, free: 3.363 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1816/1.19, allocations: 15.92 MB / 0.6632 GB, free: 159.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005643/1.196, allocations: 5.52 MB / 0.6686 GB, free: 158.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004113/1.2, allocations: 1.868 MB / 0.6704 GB, free: 158.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/1.201, allocations: 354.3 kB / 0.6708 GB, free: 158.2 MB / 494.1 MB Notification: Performance of SimCode: time 9.82e-07/1.201, allocations: 0 / 0.6708 GB, free: 158.2 MB / 494.1 MB Notification: Performance of Templates: time 0.08689/1.288, allocations: 55.08 MB / 0.7246 GB, free: 112.9 MB / 494.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.80159404873848]