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.001805/0.001805, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002188/0.002188, allocations: 211.2 kB / 24.47 MB, free: 3.977 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 2.275/2.275, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 177] 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.002092/0.002092, allocations: 47.92 kB / 379 MB, free: 2.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.3003, allocations: 53.37 MB / 432.4 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03988/0.3402, allocations: 24.63 MB / 457 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02162/0.3618, allocations: 8.166 MB / 465.2 MB, free: 5.773 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005425/0.3672, allocations: 250.8 kB / 465.4 MB, free: 5.527 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02484/0.3921, allocations: 7.644 MB / 473.1 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0144/0.4065, allocations: 2.856 MB / 475.9 MB, free: 11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006446/0.4129, allocations: 1.853 MB / 477.8 MB, free: 9.148 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01625/0.4292, allocations: 10.09 MB / 487.9 MB, free: 15.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06074/0.4899, allocations: 14.04 MB / 0.4901 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009855/0.4997, allocations: 5.51 MB / 0.4955 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01147/0.5112, allocations: 6.136 MB / 0.5015 GB, free: 5.168 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003831/0.5151, allocations: 1.539 MB / 0.503 GB, free: 3.629 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005654/0.5207, allocations: 1.921 MB / 0.5049 GB, free: 1.707 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00441/0.5251, allocations: 2.985 MB / 0.5078 GB, free: 14.71 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008993/0.5341, allocations: 4.541 MB / 0.5122 GB, free: 10.16 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0306/0.5647, allocations: 20.78 MB / 0.5325 GB, free: 5.312 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.5647, allocations: 0 / 0.5325 GB, free: 5.312 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5647, allocations: 0 / 0.5325 GB, free: 5.312 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000426/0.5651, allocations: 4 kB / 0.5325 GB, free: 5.309 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.2748/0.8399, allocations: 12.01 MB / 0.5443 GB, free: 91.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.84, allocations: 11.88 kB / 0.5443 GB, free: 91.18 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04222/0.8822, allocations: 5.594 MB / 0.5497 GB, free: 87.22 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01692/0.8991, allocations: 6.384 MB / 0.556 GB, free: 81.22 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008263/0.8999, allocations: 0.702 MB / 0.5567 GB, free: 80.52 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003623/0.9036, allocations: 0.9214 MB / 0.5576 GB, free: 79.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0385/0.9421, allocations: 15.25 MB / 0.5724 GB, free: 64.28 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006427/0.9427, allocations: 19.89 kB / 0.5725 GB, free: 64.26 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003469/0.9462, allocations: 403.4 kB / 0.5729 GB, free: 63.88 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005786/0.9467, allocations: 0.5155 MB / 0.5734 GB, free: 63.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03349/0.9802, allocations: 13.72 MB / 0.5868 GB, free: 49.62 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0831/1.063, allocations: 41.33 MB / 0.6271 GB, free: 7.906 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01703/1.08, allocations: 7.973 MB / 0.6349 GB, free: 1.176 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006586/1.087, allocations: 2.795 MB / 0.6376 GB, free: 14.38 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005615/1.088, allocations: 94.94 kB / 0.6377 GB, free: 14.29 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001104/1.088, allocations: 73.58 kB / 0.6378 GB, free: 14.2 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 1.307e-05/1.088, allocations: 0 / 0.6378 GB, free: 14.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.04512/1.133, allocations: 14.69 MB / 0.6521 GB, free: 15.57 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/1.133, allocations: 94.48 kB / 0.6522 GB, free: 15.46 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008468/1.141, allocations: 3.551 MB / 0.6557 GB, free: 11.91 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008527/1.142, allocations: 89.7 kB / 0.6558 GB, free: 11.82 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004188/1.146, allocations: 4.179 MB / 0.6599 GB, free: 7.602 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00222/1.149, allocations: 1.422 MB / 0.6612 GB, free: 6.168 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003245/1.152, allocations: 1.176 MB / 0.6624 GB, free: 4.98 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/1.152, allocations: 305.1 kB / 0.6627 GB, free: 4.68 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007109/1.159, allocations: 2.592 MB / 0.6652 GB, free: 2.082 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009129/1.168, allocations: 5.124 MB / 0.6702 GB, free: 11.78 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01528/1.184, allocations: 8.344 MB / 0.6784 GB, free: 2.246 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.768e-05/1.184, allocations: 24 kB / 0.6784 GB, free: 2.223 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01582/1.199, allocations: 8.619 MB / 0.6868 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.831e-05/1.2, allocations: 40 kB / 0.6868 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001839/1.2, allocations: 84 kB / 0.6869 GB, free: 9.449 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003016/1.203, allocations: 0.838 MB / 0.6877 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006904/1.21, allocations: 1.373 MB / 0.6891 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01492/1.225, allocations: 7.356 MB / 0.6963 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005496/1.23, allocations: 327.5 kB / 0.6966 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00112/1.231, allocations: 308 kB / 0.6969 GB, free: 15.14 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.008008/1.239, allocations: 3.509 MB / 0.7003 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00127/1.24, allocations: 413.4 kB / 0.7007 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01402/1.254, allocations: 5.949 MB / 0.7065 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.328e-05/1.255, allocations: 40 kB / 0.7065 GB, free: 5.18 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.035e-05/1.255, allocations: 8 kB / 0.7066 GB, free: 5.172 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.164e-05/1.255, allocations: 19.92 kB / 0.7066 GB, free: 5.152 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03323/1.288, allocations: 13.01 MB / 0.7193 GB, free: 7.996 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.336e-05/1.288, allocations: 4 kB / 0.7193 GB, free: 7.992 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003842/1.292, allocations: 0.6982 MB / 0.72 GB, free: 7.293 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002725/1.294, allocations: 0.6942 MB / 0.7206 GB, free: 6.598 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000522/1.295, allocations: 91.91 kB / 0.7207 GB, free: 6.508 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01261/1.308, allocations: 6.388 MB / 0.727 GB, free: 16 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/1.308, allocations: 8 kB / 0.727 GB, free: 8 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01919/1.327, allocations: 8.748 MB / 0.7355 GB, free: 7.133 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003403/1.33, allocations: 0.829 MB / 0.7363 GB, free: 6.301 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002001/1.332, allocations: 83.92 kB / 0.7364 GB, free: 6.219 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002809/1.335, allocations: 175.8 kB / 0.7366 GB, free: 6.047 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007146/1.336, allocations: 286.6 kB / 0.7369 GB, free: 5.766 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003357/1.336, allocations: 116 kB / 0.737 GB, free: 5.652 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004832/1.341, allocations: 2.283 MB / 0.7392 GB, free: 3.379 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.21e-07/1.341, allocations: 0 / 0.7392 GB, free: 3.379 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007452/1.348, allocations: 1.543 MB / 0.7407 GB, free: 1.836 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.0008683/1.349, allocations: 267.5 kB / 0.741 GB, free: 1.562 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01423/1.363, allocations: 6.269 MB / 0.7471 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/1.363, allocations: 0 / 0.7471 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.006324/1.37, allocations: 2.729 MB / 0.7497 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005707/1.375, allocations: 0.9047 MB / 0.7506 GB, free: 7.676 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6355/2.011, allocations: 15.99 MB / 0.7662 GB, free: 195.5 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007302/2.018, allocations: 5.515 MB / 0.7716 GB, free: 195.1 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005564/2.024, allocations: 1.868 MB / 0.7734 GB, free: 195 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001164/2.025, allocations: 356 kB / 0.7738 GB, free: 195 MB / 0.5607 GB Notification: Performance of SimCode: time 9.82e-07/2.025, allocations: 0 / 0.7738 GB, free: 195 MB / 0.5607 GB Notification: Performance of Templates: time 0.1327/2.158, allocations: 67.46 MB / 0.8397 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 -s cvode -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/jenkins1/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/jenkins1/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: 10.346355866000522]