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.00139/0.00139, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001951/0.001951, allocations: 210.6 kB / 23.72 MB, free: 4.391 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.561/1.561, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001739/0.001739, allocations: 55.91 kB / 378.3 MB, free: 2.418 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2288, allocations: 53.37 MB / 431.6 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.04317/0.272, allocations: 24.63 MB / 456.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02269/0.2947, allocations: 8.174 MB / 464.4 MB, free: 5.762 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005713/0.3004, allocations: 250.8 kB / 464.7 MB, free: 5.516 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02503/0.3254, allocations: 7.641 MB / 472.3 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01239/0.3378, allocations: 2.84 MB / 475.1 MB, free: 11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007046/0.3449, allocations: 1.841 MB / 477 MB, free: 9.168 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01662/0.3615, allocations: 10.1 MB / 487.1 MB, free: 15.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02436/0.3859, allocations: 13.87 MB / 0.4892 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008225/0.3941, allocations: 5.513 MB / 0.4946 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01007/0.4042, allocations: 5.855 MB / 0.5003 GB, free: 5.629 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00353/0.4077, allocations: 1.539 MB / 0.5018 GB, free: 4.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00517/0.4129, allocations: 1.902 MB / 0.5037 GB, free: 2.188 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004141/0.417, allocations: 2.993 MB / 0.5066 GB, free: 15.19 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008046/0.425, allocations: 4.541 MB / 0.511 GB, free: 10.63 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02462/0.4497, allocations: 20.77 MB / 0.5313 GB, free: 5.793 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.4497, allocations: 3.984 kB / 0.5313 GB, free: 5.789 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4497, allocations: 0 / 0.5313 GB, free: 5.789 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000487/0.4502, allocations: 0 / 0.5313 GB, free: 5.789 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.2782/0.7283, allocations: 12.01 MB / 0.5431 GB, free: 50.06 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.7284, allocations: 12.19 kB / 0.5431 GB, free: 50.06 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03085/0.7592, allocations: 5.599 MB / 0.5485 GB, free: 49.49 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01393/0.7732, allocations: 6.376 MB / 0.5548 GB, free: 49.01 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000882/0.7741, allocations: 0.7067 MB / 0.5554 GB, free: 48.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004183/0.7782, allocations: 0.9258 MB / 0.5564 GB, free: 48.9 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02958/0.8078, allocations: 15.25 MB / 0.5712 GB, free: 38.18 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002575/0.8081, allocations: 21.94 kB / 0.5713 GB, free: 38.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001148/0.8092, allocations: 385.2 kB / 0.5716 GB, free: 37.79 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003541/0.8096, allocations: 0.5179 MB / 0.5721 GB, free: 37.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02349/0.8331, allocations: 13.72 MB / 0.5855 GB, free: 23.54 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07038/0.9034, allocations: 41.33 MB / 0.6259 GB, free: 14.38 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01461/0.918, allocations: 7.972 MB / 0.6337 GB, free: 7.711 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004826/0.9229, allocations: 2.795 MB / 0.6364 GB, free: 4.918 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003211/0.9232, allocations: 98.55 kB / 0.6365 GB, free: 4.824 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.878e-05/0.9233, allocations: 73.58 kB / 0.6366 GB, free: 4.742 MB / 478.1 MB Notification: Performance of pre-optimization done (n=384): time 6.192e-06/0.9233, allocations: 0 / 0.6366 GB, free: 4.742 MB / 478.1 MB Notification: Performance of matching and sorting (n=392): time 0.03033/0.9536, allocations: 14.69 MB / 0.6509 GB, free: 6.164 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.079e-05/0.9537, allocations: 102.4 kB / 0.651 GB, free: 6.051 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005507/0.9592, allocations: 3.557 MB / 0.6545 GB, free: 2.492 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004449/0.9596, allocations: 89.7 kB / 0.6546 GB, free: 2.398 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003343/0.963, allocations: 4.191 MB / 0.6587 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001542/0.9645, allocations: 1.402 MB / 0.66 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001835/0.9664, allocations: 1.18 MB / 0.6612 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.9665, allocations: 301.1 kB / 0.6615 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004127/0.9706, allocations: 2.592 MB / 0.664 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006162/0.9768, allocations: 5.111 MB / 0.669 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01132/0.9881, allocations: 8.353 MB / 0.6772 GB, free: 9.285 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.228e-05/0.9882, allocations: 24 kB / 0.6772 GB, free: 9.262 MB / 0.5137 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01545/1.004, allocations: 8.623 MB / 0.6856 GB, free: 1.125 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.977e-05/1.004, allocations: 40 kB / 0.6856 GB, free: 1.086 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001389/1.004, allocations: 88.06 kB / 0.6857 GB, free: 1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00241/1.006, allocations: 0.8336 MB / 0.6865 GB, free: 168 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004885/1.011, allocations: 1.37 MB / 0.6879 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01166/1.023, allocations: 7.338 MB / 0.695 GB, free: 7.508 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004206/1.027, allocations: 335.2 kB / 0.6954 GB, free: 7.184 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009788/1.028, allocations: 308 kB / 0.6957 GB, free: 6.883 MB / 0.5294 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.006032/1.034, allocations: 3.511 MB / 0.6991 GB, free: 3.457 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001003/1.035, allocations: 424.1 kB / 0.6995 GB, free: 3.043 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01061/1.046, allocations: 5.947 MB / 0.7053 GB, free: 13.08 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.531e-05/1.046, allocations: 43.94 kB / 0.7053 GB, free: 13.04 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.565e-05/1.046, allocations: 8 kB / 0.7053 GB, free: 13.03 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.081e-05/1.046, allocations: 23.92 kB / 0.7054 GB, free: 13.01 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02407/1.07, allocations: 13.02 MB / 0.7181 GB, free: 76 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.437e-05/1.07, allocations: 4 kB / 0.7181 GB, free: 72 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002708/1.072, allocations: 0.6969 MB / 0.7188 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001949/1.074, allocations: 0.6939 MB / 0.7194 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002276/1.075, allocations: 87.97 kB / 0.7195 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009689/1.084, allocations: 6.391 MB / 0.7258 GB, free: 8.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/1.084, allocations: 11.56 kB / 0.7258 GB, free: 8.152 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01428/1.099, allocations: 8.739 MB / 0.7343 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002374/1.101, allocations: 0.8329 MB / 0.7351 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005294/1.102, allocations: 75.98 kB / 0.7352 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/1.103, allocations: 175.8 kB / 0.7354 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005315/1.104, allocations: 281.8 kB / 0.7356 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002341/1.104, allocations: 116 kB / 0.7357 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003437/1.107, allocations: 2.287 MB / 0.738 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/1.107, allocations: 0 / 0.738 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005092/1.113, allocations: 1.551 MB / 0.7395 GB, free: 10.02 MB / 0.5762 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.0005823/1.113, allocations: 264 kB / 0.7397 GB, free: 9.797 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0111/1.124, allocations: 6.275 MB / 0.7459 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/1.124, allocations: 0 / 0.7459 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004957/1.129, allocations: 2.728 MB / 0.7485 GB, free: 1.113 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004251/1.133, allocations: 0.8956 MB / 0.7494 GB, free: 248 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02767/1.161, allocations: 15.99 MB / 0.765 GB, free: 164 kB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.365/1.526, allocations: 5.516 MB / 0.7704 GB, free: 226.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004319/1.53, allocations: 1.867 MB / 0.7722 GB, free: 226.9 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009395/1.531, allocations: 356.1 kB / 0.7726 GB, free: 226.9 MB / 0.5919 GB Notification: Performance of SimCode: time 8.51e-07/1.531, allocations: 0 / 0.7726 GB, free: 226.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.09624/1.628, allocations: 64.55 MB / 0.8356 GB, free: 176.1 MB / 0.5919 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.881064023822546]