Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001654/0.001654, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002094/0.002094, allocations: 207.8 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.489/1.489, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 43.92 kB / 378.2 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2551, allocations: 53.37 MB / 431.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0325/0.2876, allocations: 24.63 MB / 456.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01846/0.3061, allocations: 8.174 MB / 464.4 MB, free: 5.773 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005012/0.3111, allocations: 254.8 kB / 464.7 MB, free: 5.523 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02042/0.3315, allocations: 7.639 MB / 472.3 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01275/0.3443, allocations: 2.852 MB / 475.2 MB, free: 11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007624/0.3519, allocations: 1.853 MB / 477 MB, free: 9.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01523/0.3671, allocations: 10.1 MB / 487.1 MB, free: 15.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02664/0.3938, allocations: 14.04 MB / 0.4894 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00997/0.4037, allocations: 5.514 MB / 0.4948 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01115/0.4149, allocations: 6.136 MB / 0.5008 GB, free: 5.16 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004485/0.4194, allocations: 1.539 MB / 0.5023 GB, free: 3.621 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006151/0.4255, allocations: 1.917 MB / 0.5042 GB, free: 1.707 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005172/0.4307, allocations: 2.989 MB / 0.5071 GB, free: 14.71 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01022/0.4409, allocations: 4.541 MB / 0.5115 GB, free: 10.15 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03086/0.4718, allocations: 20.77 MB / 0.5318 GB, free: 5.312 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.4718, allocations: 0 / 0.5318 GB, free: 5.312 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4718, allocations: 0 / 0.5318 GB, free: 5.312 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006045/0.4724, allocations: 0 / 0.5318 GB, free: 5.312 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.2659/0.7383, allocations: 12.01 MB / 0.5435 GB, free: 91.17 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.7384, allocations: 7.812 kB / 0.5435 GB, free: 91.17 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03067/0.769, allocations: 5.602 MB / 0.549 GB, free: 87.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01412/0.7832, allocations: 6.383 MB / 0.5552 GB, free: 81.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005919/0.7837, allocations: 0.7019 MB / 0.5559 GB, free: 80.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003195/0.7869, allocations: 0.9285 MB / 0.5568 GB, free: 79.58 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03118/0.8181, allocations: 15.25 MB / 0.5717 GB, free: 64.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000352/0.8185, allocations: 15.91 kB / 0.5717 GB, free: 64.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001699/0.8202, allocations: 399 kB / 0.5721 GB, free: 63.85 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000351/0.8205, allocations: 0.5155 MB / 0.5726 GB, free: 63.33 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02207/0.8426, allocations: 13.72 MB / 0.586 GB, free: 49.59 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05578/0.8984, allocations: 41.32 MB / 0.6264 GB, free: 7.902 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.011/0.9094, allocations: 7.986 MB / 0.6342 GB, free: 1.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004379/0.9137, allocations: 2.797 MB / 0.6369 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004321/0.9142, allocations: 94.94 kB / 0.637 GB, free: 14.27 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.846e-05/0.9143, allocations: 73.56 kB / 0.6371 GB, free: 14.19 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 7.114e-06/0.9143, allocations: 4 kB / 0.6371 GB, free: 14.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.02971/0.944, allocations: 14.68 MB / 0.6514 GB, free: 15.55 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.741e-05/0.9441, allocations: 90.48 kB / 0.6515 GB, free: 15.45 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005178/0.9492, allocations: 3.555 MB / 0.655 GB, free: 11.89 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002558/0.9495, allocations: 85.7 kB / 0.655 GB, free: 11.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003158/0.9527, allocations: 4.191 MB / 0.6591 GB, free: 7.578 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001311/0.954, allocations: 1.41 MB / 0.6605 GB, free: 6.156 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001747/0.9557, allocations: 1.18 MB / 0.6617 GB, free: 4.965 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.9559, allocations: 305.1 kB / 0.662 GB, free: 4.664 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004001/0.9599, allocations: 2.592 MB / 0.6645 GB, free: 2.066 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006542/0.9664, allocations: 5.112 MB / 0.6695 GB, free: 11.77 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01156/0.978, allocations: 8.344 MB / 0.6776 GB, free: 2.242 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-05/0.978, allocations: 27.94 kB / 0.6777 GB, free: 2.215 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01587/0.9939, allocations: 8.622 MB / 0.6861 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.202e-05/0.994, allocations: 44 kB / 0.6861 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001058/0.9941, allocations: 80 kB / 0.6862 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002242/0.9963, allocations: 0.8383 MB / 0.687 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004671/1.001, allocations: 1.373 MB / 0.6884 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01152/1.013, allocations: 7.356 MB / 0.6955 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003643/1.016, allocations: 327.5 kB / 0.6958 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005159/1.017, allocations: 308 kB / 0.6961 GB, free: 15.13 MB / 0.5137 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.005983/1.023, allocations: 3.513 MB / 0.6996 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008784/1.024, allocations: 409.3 kB / 0.7 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/1.034, allocations: 5.949 MB / 0.7058 GB, free: 5.207 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-05/1.034, allocations: 43.94 kB / 0.7058 GB, free: 5.164 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.766e-05/1.034, allocations: 8 kB / 0.7058 GB, free: 5.156 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.38e-05/1.034, allocations: 23.92 kB / 0.7058 GB, free: 5.133 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02593/1.06, allocations: 13 MB / 0.7185 GB, free: 7.988 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/1.06, allocations: 7.938 kB / 0.7185 GB, free: 7.98 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002863/1.063, allocations: 0.6988 MB / 0.7192 GB, free: 7.281 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002008/1.065, allocations: 0.6936 MB / 0.7199 GB, free: 6.586 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002571/1.065, allocations: 91.91 kB / 0.72 GB, free: 6.496 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009913/1.075, allocations: 6.396 MB / 0.7262 GB, free: 15.99 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/1.075, allocations: 4 kB / 0.7262 GB, free: 15.99 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01459/1.09, allocations: 8.748 MB / 0.7348 GB, free: 7.117 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002834/1.093, allocations: 0.829 MB / 0.7356 GB, free: 6.285 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007629/1.094, allocations: 75.94 kB / 0.7357 GB, free: 6.211 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001881/1.095, allocations: 187.9 kB / 0.7359 GB, free: 6.027 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005597/1.096, allocations: 282.5 kB / 0.7361 GB, free: 5.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002674/1.096, allocations: 120 kB / 0.7362 GB, free: 5.633 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00356/1.1, allocations: 2.275 MB / 0.7385 GB, free: 3.367 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/1.1, allocations: 0 / 0.7385 GB, free: 3.367 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005207/1.105, allocations: 1.551 MB / 0.74 GB, free: 1.816 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.0005942/1.106, allocations: 263.2 kB / 0.7402 GB, free: 1.547 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0108/1.116, allocations: 6.266 MB / 0.7463 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/1.116, allocations: 0 / 0.7463 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004595/1.121, allocations: 2.725 MB / 0.749 GB, free: 8.539 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004179/1.125, allocations: 0.9007 MB / 0.7499 GB, free: 7.664 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4057/1.531, allocations: 15.98 MB / 0.7655 GB, free: 195.5 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005583/1.536, allocations: 5.527 MB / 0.7709 GB, free: 195 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004029/1.54, allocations: 1.861 MB / 0.7727 GB, free: 194.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008863/1.541, allocations: 351.6 kB / 0.773 GB, free: 194.9 MB / 0.5607 GB Notification: Performance of SimCode: time 1.232e-06/1.541, allocations: 0 / 0.773 GB, free: 194.9 MB / 0.5607 GB Notification: Performance of Templates: time 0.09753/1.639, allocations: 67.48 MB / 0.8389 GB, free: 134.7 MB / 0.5607 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.862605352886021]