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.001272/0.001272, allocations: 116.8 kB / 19.18 MB, free: 3.762 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.001373/0.001373, allocations: 210.6 kB / 22.13 MB, free: 0.8125 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.45/1.45, allocations: 230.2 MB / 255.2 MB, free: 15.25 MB / 206.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 0.001855/0.001855, allocations: 63.89 kB / 374.6 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1066, allocations: 53.32 MB / 427.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2334/0.34, allocations: 28.73 MB / 456.6 MB, free: 9.422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02012/0.3601, allocations: 8.514 MB / 465.1 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007634/0.3678, allocations: 213.2 kB / 465.3 MB, free: 3.309 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02/0.3878, allocations: 8.284 MB / 473.6 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01117/0.399, allocations: 2.845 MB / 476.5 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006232/0.4052, allocations: 1.883 MB / 478.3 MB, free: 10.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01503/0.4202, allocations: 10.02 MB / 488.4 MB, free: 4.035 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0279/0.4481, allocations: 16.33 MB / 0.4929 GB, free: 3.941 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009528/0.4576, allocations: 5.373 MB / 0.4981 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01158/0.4692, allocations: 6.132 MB / 0.5041 GB, free: 8.402 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004602/0.4738, allocations: 1.539 MB / 0.5056 GB, free: 6.863 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007118/0.4809, allocations: 1.921 MB / 0.5075 GB, free: 4.941 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005141/0.4861, allocations: 2.993 MB / 0.5104 GB, free: 1.941 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01087/0.497, allocations: 5.841 MB / 0.5161 GB, free: 12.08 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02654/0.5235, allocations: 20.7 MB / 0.5363 GB, free: 7.316 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.5235, allocations: 0 / 0.5363 GB, free: 7.316 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5235, allocations: 0 / 0.5363 GB, free: 7.316 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005495/0.5241, allocations: 0 / 0.5363 GB, free: 7.316 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.03724/0.5613, allocations: 12.09 MB / 0.5481 GB, free: 11.11 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.5613, allocations: 16.03 kB / 0.5481 GB, free: 11.1 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03311/0.5945, allocations: 5.601 MB / 0.5536 GB, free: 5.484 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01407/0.6085, allocations: 6.33 MB / 0.5598 GB, free: 15.1 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007717/0.6093, allocations: 0.7025 MB / 0.5605 GB, free: 14.39 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003707/0.613, allocations: 0.9218 MB / 0.5614 GB, free: 13.47 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03822/0.6512, allocations: 15.1 MB / 0.5761 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000506/0.6517, allocations: 15.94 kB / 0.5762 GB, free: 14.27 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004055/0.6558, allocations: 392 kB / 0.5765 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006477/0.6564, allocations: 0.5155 MB / 0.577 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03083/0.6873, allocations: 13.78 MB / 0.5905 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4475/1.135, allocations: 47.65 MB / 0.637 GB, free: 128 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01713/1.152, allocations: 28.23 MB / 0.6646 GB, free: 102.8 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005254/1.157, allocations: 2.81 MB / 0.6673 GB, free: 102.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003754/1.158, allocations: 341.3 kB / 0.6676 GB, free: 102.4 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.87e-05/1.158, allocations: 74.64 kB / 0.6677 GB, free: 102.4 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=384): time 5.28e-06/1.158, allocations: 0 / 0.6677 GB, free: 102.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=392): time 0.02839/1.186, allocations: 14.91 MB / 0.6823 GB, free: 97.62 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/1.186, allocations: 94.11 kB / 0.6824 GB, free: 97.56 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004279/1.19, allocations: 3.609 MB / 0.6859 GB, free: 96.26 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0004185/1.191, allocations: 89.33 kB / 0.686 GB, free: 96.18 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001776/1.192, allocations: 4.187 MB / 0.6901 GB, free: 93.53 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00107/1.194, allocations: 1.41 MB / 0.6914 GB, free: 92.44 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00142/1.195, allocations: 1.169 MB / 0.6926 GB, free: 91.87 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.22e-05/1.195, allocations: 312.4 kB / 0.6929 GB, free: 91.57 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003069/1.198, allocations: 2.59 MB / 0.6954 GB, free: 90.61 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004162/1.202, allocations: 5.09 MB / 0.7004 GB, free: 86.06 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00786/1.21, allocations: 8.349 MB / 0.7085 GB, free: 79.39 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.645e-05/1.21, allocations: 30.91 kB / 0.7086 GB, free: 79.38 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01295/1.223, allocations: 8.654 MB / 0.717 GB, free: 74.8 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.076e-05/1.223, allocations: 48.97 kB / 0.7171 GB, free: 74.79 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001057/1.223, allocations: 86.77 kB / 0.7171 GB, free: 74.79 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002183/1.225, allocations: 0.8481 MB / 0.718 GB, free: 74.24 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004313/1.23, allocations: 1.369 MB / 0.7193 GB, free: 72.87 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008814/1.239, allocations: 7.678 MB / 0.7268 GB, free: 65.05 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004398/1.243, allocations: 327.5 kB / 0.7271 GB, free: 64.73 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007259/1.244, allocations: 310 kB / 0.7274 GB, free: 64.43 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.005293/1.249, allocations: 3.527 MB / 0.7309 GB, free: 60.89 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/1.25, allocations: 430.1 kB / 0.7313 GB, free: 60.47 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00898/1.259, allocations: 5.955 MB / 0.7371 GB, free: 54.48 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.517e-05/1.259, allocations: 44 kB / 0.7371 GB, free: 54.44 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.339e-05/1.259, allocations: 11.98 kB / 0.7371 GB, free: 54.43 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.301e-05/1.259, allocations: 23.86 kB / 0.7372 GB, free: 54.4 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02106/1.28, allocations: 14.95 MB / 0.7518 GB, free: 39.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-05/1.28, allocations: 12.12 kB / 0.7518 GB, free: 39.39 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00253/1.283, allocations: 0.6943 MB / 0.7525 GB, free: 38.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001919/1.285, allocations: 0.7092 MB / 0.7531 GB, free: 37.99 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003434/1.285, allocations: 87.97 kB / 0.7532 GB, free: 37.9 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007545/1.293, allocations: 6.717 MB / 0.7598 GB, free: 31.06 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.293, allocations: 4 kB / 0.7598 GB, free: 31.05 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01132/1.304, allocations: 8.769 MB / 0.7684 GB, free: 22.16 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001906/1.306, allocations: 0.9082 MB / 0.7692 GB, free: 21.23 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006218/1.306, allocations: 79.98 kB / 0.7693 GB, free: 21.15 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001901/1.308, allocations: 179.8 kB / 0.7695 GB, free: 20.97 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004672/1.309, allocations: 270.7 kB / 0.7697 GB, free: 20.71 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002076/1.309, allocations: 120 kB / 0.7699 GB, free: 20.59 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003096/1.312, allocations: 2.412 MB / 0.7722 GB, free: 18.19 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.61e-07/1.312, allocations: 0 / 0.7722 GB, free: 18.19 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005687/1.318, allocations: 1.555 MB / 0.7737 GB, free: 16.64 MB / 0.5138 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.0006927/1.318, allocations: 277.8 kB / 0.774 GB, free: 16.37 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008697/1.327, allocations: 6.273 MB / 0.7801 GB, free: 10.09 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/1.327, allocations: 3.844 kB / 0.7801 GB, free: 10.09 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004069/1.331, allocations: 2.74 MB / 0.7828 GB, free: 7.336 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0052/1.336, allocations: 0.9629 MB / 0.7837 GB, free: 6.414 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02865/1.365, allocations: 15.63 MB / 0.799 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008337/1.373, allocations: 5.791 MB / 0.8047 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001754/1.375, allocations: 407.3 kB / 0.8051 GB, free: 440 kB / 0.5294 GB Notification: Performance of SimCode: time 1.483e-06/1.375, allocations: 0 / 0.8051 GB, free: 440 kB / 0.5294 GB Notification: Performance of Templates: time 0.3785/1.754, allocations: 153.4 MB / 0.9549 GB, free: 86.3 MB / 0.5607 GB " [Timeout remaining time 658] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 16.354326294967905]