Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002119/0.002119, allocations: 96.3 kB / 21.73 MB, free: 2.703 MB / 18.57 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.001804/0.001804, allocations: 167.3 kB / 25.02 MB, free: 8.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.499/1.499, allocations: 158.6 MB / 186.8 MB, free: 2.887 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 250.4 MB, free: 3.895 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.795e-05/2.97e-05, allocations: 2.312 kB / 250.4 MB, free: 3.891 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.06698/0.06701, allocations: 25.13 MB / 275.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02262/0.08963, allocations: 8.272 MB / 283.8 MB, free: 2.344 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00549/0.09512, allocations: 218.9 kB / 284 MB, free: 2.129 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02199/0.1171, allocations: 8.099 MB / 292.1 MB, free: 9.988 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01162/0.1287, allocations: 3.119 MB / 295.2 MB, free: 6.852 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006883/0.1356, allocations: 1.9 MB / 297.1 MB, free: 4.949 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.1288/0.2645, allocations: 10.91 MB / 308.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02299/0.2874, allocations: 14.07 MB / 322.1 MB, free: 12.64 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01503/0.3025, allocations: 8.45 MB / 330.6 MB, free: 8.688 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009623/0.3121, allocations: 5.571 MB / 336.1 MB, free: 6.75 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004334/0.3164, allocations: 1.581 MB / 337.7 MB, free: 6.633 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006682/0.3231, allocations: 1.939 MB / 339.7 MB, free: 4.793 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00452/0.3276, allocations: 3.261 MB / 342.9 MB, free: 2.129 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0134/0.341, allocations: 4.36 MB / 347.3 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03692/0.378, allocations: 21.49 MB / 368.8 MB, free: 10.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.378, allocations: 0 / 368.8 MB, free: 10.55 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.378, allocations: 0 / 368.8 MB, free: 10.55 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0006525/0.3786, allocations: 0.75 kB / 368.8 MB, free: 10.55 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.06451/0.4431, allocations: 12.49 MB / 381.3 MB, free: 14.09 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.307e-05/0.4432, allocations: 8.031 kB / 381.3 MB, free: 14.08 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07121/0.5144, allocations: 10.5 MB / 391.8 MB, free: 3.676 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02669/0.5411, allocations: 6.127 MB / 397.9 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00159/0.5427, allocations: 0.7422 MB / 398.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005948/0.5486, allocations: 0.9828 MB / 399.6 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07074/0.6194, allocations: 16.71 MB / 416.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005637/0.6199, allocations: 19.91 kB / 416.4 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003726/0.6237, allocations: 412.9 kB / 416.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009142/0.6246, allocations: 0.6106 MB / 417.4 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0432/0.6678, allocations: 15.89 MB / 433.3 MB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3248/0.9926, allocations: 45.54 MB / 478.8 MB, free: 99.7 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01827/1.011, allocations: 12.2 MB / 491 MB, free: 95.09 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004604/1.015, allocations: 3.164 MB / 494.2 MB, free: 93.12 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01318/1.029, allocations: 8.41 MB / 0.4908 GB, free: 84.91 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/1.029, allocations: 64.67 kB / 0.4909 GB, free: 84.84 MB / 378.8 MB Notification: Performance of pre-optimization done (n=270): time 4.789e-06/1.029, allocations: 0 / 0.4909 GB, free: 84.84 MB / 378.8 MB Notification: Performance of matching and sorting (n=278): time 0.02174/1.05, allocations: 12.91 MB / 0.5035 GB, free: 72.22 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.275e-05/1.05, allocations: 81.59 kB / 0.5035 GB, free: 72.13 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004309/1.055, allocations: 4.072 MB / 0.5075 GB, free: 68.21 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000252/1.055, allocations: 73.7 kB / 0.5076 GB, free: 68.14 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001592/1.057, allocations: 4.78 MB / 0.5123 GB, free: 63.73 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006019/1.057, allocations: 1.028 MB / 0.5133 GB, free: 62.71 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001334/1.059, allocations: 1.227 MB / 0.5145 GB, free: 61.48 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.332e-05/1.059, allocations: 305.1 kB / 0.5147 GB, free: 61.18 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002776/1.061, allocations: 2.448 MB / 0.5171 GB, free: 58.72 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003729/1.065, allocations: 5.628 MB / 0.5226 GB, free: 51.55 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007375/1.072, allocations: 8.682 MB / 0.5311 GB, free: 41.3 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.284e-05/1.073, allocations: 28 kB / 0.5311 GB, free: 41.27 MB / 378.8 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01211/1.085, allocations: 9.039 MB / 0.54 GB, free: 32.18 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.065e-05/1.085, allocations: 52 kB / 0.54 GB, free: 32.13 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001114/1.085, allocations: 108 kB / 0.5401 GB, free: 32.02 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002744/1.088, allocations: 1.013 MB / 0.5411 GB, free: 31.01 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004408/1.092, allocations: 1.408 MB / 0.5425 GB, free: 29.6 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0085/1.1, allocations: 7.289 MB / 0.5496 GB, free: 22.2 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004751/1.105, allocations: 351.5 kB / 0.5499 GB, free: 21.86 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001082/1.106, allocations: 352 kB / 0.5503 GB, free: 21.52 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005941/1.112, allocations: 3.684 MB / 0.5539 GB, free: 17.82 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001104/1.113, allocations: 493.4 kB / 0.5543 GB, free: 17.33 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007466/1.121, allocations: 5.03 MB / 0.5593 GB, free: 12.25 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.176e-05/1.121, allocations: 32 kB / 0.5593 GB, free: 12.22 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/1.121, allocations: 8 kB / 0.5593 GB, free: 12.21 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-05/1.121, allocations: 15.94 kB / 0.5593 GB, free: 12.2 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01556/1.136, allocations: 10.34 MB / 0.5694 GB, free: 1.797 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/1.136, allocations: 11.92 kB / 0.5694 GB, free: 1.785 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00201/1.138, allocations: 0.5149 MB / 0.5699 GB, free: 1.27 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00242/1.141, allocations: 0.8455 MB / 0.5707 GB, free: 432 kB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002144/1.141, allocations: 67.98 kB / 0.5708 GB, free: 364 kB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/1.152, allocations: 6.454 MB / 0.5771 GB, free: 9.805 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/1.152, allocations: 0 / 0.5771 GB, free: 9.805 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01378/1.166, allocations: 7.4 MB / 0.5843 GB, free: 2.262 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002171/1.168, allocations: 0.7431 MB / 0.5851 GB, free: 1.516 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009557/1.169, allocations: 55.98 kB / 0.5851 GB, free: 1.461 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002564/1.171, allocations: 163.9 kB / 0.5853 GB, free: 1.301 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006265/1.172, allocations: 217.8 kB / 0.5855 GB, free: 1.086 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000243/1.172, allocations: 83.98 kB / 0.5856 GB, free: 1.004 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.1304/1.303, allocations: 2.54 MB / 0.588 GB, free: 127.4 MB / 394.8 MB Notification: Performance of sort global known variables: time 2.2e-07/1.303, allocations: 0 / 0.588 GB, free: 127.4 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.007228/1.31, allocations: 1.546 MB / 0.5896 GB, free: 127.4 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000865/1.311, allocations: 219.3 kB / 0.5898 GB, free: 127.4 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.01019/1.321, allocations: 5.882 MB / 0.5955 GB, free: 126.3 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 8.667e-06/1.321, allocations: 0 / 0.5955 GB, free: 126.3 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003642/1.325, allocations: 2.284 MB / 0.5977 GB, free: 125.4 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004209/1.329, allocations: 0.9029 MB / 0.5986 GB, free: 125.1 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0259/1.355, allocations: 16.64 MB / 0.6149 GB, free: 117.5 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00571/1.36, allocations: 5.766 MB / 0.6205 GB, free: 113.2 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.00446/1.365, allocations: 1.933 MB / 0.6224 GB, free: 111.9 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009082/1.366, allocations: 318.5 kB / 0.6227 GB, free: 111.6 MB / 394.8 MB Notification: Performance of SimCode: time 1.333e-06/1.366, allocations: 4 kB / 0.6227 GB, free: 111.6 MB / 394.8 MB Notification: Performance of Templates: time 0.07906/1.445, allocations: 50.54 MB / 0.672 GB, free: 61.91 MB / 394.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.55718140990939]