Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 108.6 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002093/0.002093, allocations: 193.1 kB / 24.47 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 43.94 kB / 371.7 MB, free: 9.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2705, allocations: 52.19 MB / 423.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03306/0.3036, allocations: 28.77 MB / 452.7 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01839/0.322, allocations: 8.431 MB / 461.1 MB, free: 9.289 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006326/0.3283, allocations: 258.8 kB / 461.4 MB, free: 9.035 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01989/0.3482, allocations: 8.288 MB / 469.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01019/0.3584, allocations: 2.923 MB / 472.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006362/0.3648, allocations: 1.905 MB / 474.5 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01502/0.3798, allocations: 10.04 MB / 484.5 MB, free: 1.816 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02875/0.4085, allocations: 14.03 MB / 498.6 MB, free: 3.641 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009796/0.4183, allocations: 5.494 MB / 0.4923 GB, free: 14.13 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01055/0.4289, allocations: 6.109 MB / 0.4982 GB, free: 8.004 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004315/0.4332, allocations: 1.539 MB / 0.4997 GB, free: 6.465 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006417/0.4396, allocations: 1.906 MB / 0.5016 GB, free: 4.559 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005525/0.4451, allocations: 2.985 MB / 0.5045 GB, free: 1.566 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01087/0.456, allocations: 5.86 MB / 0.5102 GB, free: 11.68 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0278/0.4838, allocations: 20.66 MB / 0.5304 GB, free: 6.957 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.4838, allocations: 4 kB / 0.5304 GB, free: 6.953 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.4838, allocations: 3.938 kB / 0.5304 GB, free: 6.949 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005531/0.4844, allocations: 3.938 kB / 0.5304 GB, free: 6.945 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.4603/0.9446, allocations: 11.98 MB / 0.5421 GB, free: 94.39 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.9447, allocations: 7.875 kB / 0.5421 GB, free: 94.39 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02969/0.9744, allocations: 5.676 MB / 0.5477 GB, free: 92.55 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01508/0.9895, allocations: 6.366 MB / 0.5539 GB, free: 88.77 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008121/0.9903, allocations: 0.7018 MB / 0.5546 GB, free: 88.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004063/0.9943, allocations: 0.9235 MB / 0.5555 GB, free: 88.03 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03821/1.033, allocations: 15.07 MB / 0.5702 GB, free: 72.91 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006395/1.033, allocations: 19.91 kB / 0.5702 GB, free: 72.89 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003491/1.037, allocations: 392.2 kB / 0.5706 GB, free: 72.51 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000492/1.037, allocations: 0.5155 MB / 0.5711 GB, free: 71.99 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02661/1.064, allocations: 13.74 MB / 0.5845 GB, free: 58.23 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07531/1.139, allocations: 46.51 MB / 0.6299 GB, free: 11.33 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/1.152, allocations: 8.038 MB / 0.6378 GB, free: 4.535 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004263/1.156, allocations: 2.791 MB / 0.6405 GB, free: 1.734 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000441/1.156, allocations: 98.42 kB / 0.6406 GB, free: 1.652 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.448e-05/1.156, allocations: 81.52 kB / 0.6407 GB, free: 1.562 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 7.003e-06/1.156, allocations: 0 / 0.6407 GB, free: 1.562 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.03856/1.195, allocations: 14.7 MB / 0.655 GB, free: 2.914 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/1.195, allocations: 90.48 kB / 0.6551 GB, free: 2.812 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007963/1.203, allocations: 3.611 MB / 0.6586 GB, free: 15.21 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000633/1.204, allocations: 89.7 kB / 0.6587 GB, free: 15.11 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003787/1.208, allocations: 4.18 MB / 0.6628 GB, free: 10.89 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001893/1.209, allocations: 1.41 MB / 0.6642 GB, free: 9.473 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003049/1.212, allocations: 1.168 MB / 0.6653 GB, free: 8.293 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/1.213, allocations: 305.1 kB / 0.6656 GB, free: 7.992 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004868/1.217, allocations: 2.588 MB / 0.6681 GB, free: 5.398 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007622/1.225, allocations: 5.091 MB / 0.6731 GB, free: 15.13 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01361/1.239, allocations: 8.337 MB / 0.6813 GB, free: 5.605 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001013/1.239, allocations: 24 kB / 0.6813 GB, free: 5.582 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01892/1.258, allocations: 8.63 MB / 0.6897 GB, free: 12.92 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001195/1.258, allocations: 43.94 kB / 0.6898 GB, free: 12.88 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001676/1.258, allocations: 84 kB / 0.6898 GB, free: 12.79 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002625/1.261, allocations: 0.858 MB / 0.6907 GB, free: 11.94 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005361/1.266, allocations: 1.361 MB / 0.692 GB, free: 10.57 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01283/1.279, allocations: 7.582 MB / 0.6994 GB, free: 2.867 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004531/1.283, allocations: 331.5 kB / 0.6997 GB, free: 2.543 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001137/1.285, allocations: 312 kB / 0.7 GB, free: 2.238 MB / 0.4982 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.007785/1.292, allocations: 3.509 MB / 0.7034 GB, free: 14.71 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001466/1.294, allocations: 433.2 kB / 0.7039 GB, free: 14.29 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01278/1.307, allocations: 5.953 MB / 0.7097 GB, free: 8.293 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.946e-05/1.307, allocations: 40 kB / 0.7097 GB, free: 8.254 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-05/1.307, allocations: 8 kB / 0.7097 GB, free: 8.246 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.714e-05/1.307, allocations: 27.8 kB / 0.7097 GB, free: 8.219 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03433/1.341, allocations: 14.94 MB / 0.7243 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.63e-05/1.341, allocations: 12 kB / 0.7243 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003157/1.344, allocations: 0.6865 MB / 0.725 GB, free: 8.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002334/1.347, allocations: 0.7174 MB / 0.7257 GB, free: 7.711 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006017/1.347, allocations: 83.98 kB / 0.7258 GB, free: 7.629 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01064/1.358, allocations: 6.607 MB / 0.7323 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/1.358, allocations: 4 kB / 0.7323 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01695/1.375, allocations: 8.753 MB / 0.7408 GB, free: 8.02 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002804/1.378, allocations: 0.8446 MB / 0.7416 GB, free: 7.172 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001272/1.379, allocations: 79.94 kB / 0.7417 GB, free: 7.094 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002741/1.382, allocations: 187.9 kB / 0.7419 GB, free: 6.91 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008433/1.382, allocations: 278.5 kB / 0.7421 GB, free: 6.637 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004634/1.383, allocations: 115.9 kB / 0.7423 GB, free: 6.523 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005207/1.388, allocations: 2.412 MB / 0.7446 GB, free: 4.125 MB / 0.545 GB Notification: Performance of sort global known variables: time 3e-07/1.388, allocations: 0 / 0.7446 GB, free: 4.125 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006988/1.395, allocations: 1.551 MB / 0.7461 GB, free: 2.574 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.0009579/1.396, allocations: 265.4 kB / 0.7464 GB, free: 2.309 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2297/1.626, allocations: 6.266 MB / 0.7525 GB, free: 187.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.397e-06/1.626, allocations: 3.406 kB / 0.7525 GB, free: 187.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004396/1.63, allocations: 2.727 MB / 0.7552 GB, free: 186.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004803/1.635, allocations: 0.9646 MB / 0.7561 GB, free: 186.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02772/1.663, allocations: 15.81 MB / 0.7715 GB, free: 179.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007817/1.67, allocations: 5.798 MB / 0.7772 GB, free: 176.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001709/1.672, allocations: 379.6 kB / 0.7776 GB, free: 176.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.723e-06/1.672, allocations: 0 / 0.7776 GB, free: 176.9 MB / 0.545 GB Notification: Performance of Templates: time 0.1522/1.824, allocations: 152.1 MB / 0.9261 GB, free: 28.55 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 16.281561207026243]