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.001846/0.001846, allocations: 113.5 kB / 20.43 MB, free: 1.297 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.002117/0.002117, allocations: 189.1 kB / 23.72 MB, free: 4.535 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.419/1.419, allocations: 225.6 MB / 252.5 MB, free: 13.01 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.002507/0.002507, allocations: 43.92 kB / 371 MB, free: 9.289 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2379, allocations: 52.18 MB / 423.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.035/0.2729, allocations: 28.79 MB / 451.9 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01765/0.2905, allocations: 8.423 MB / 460.4 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004903/0.2954, allocations: 254.8 kB / 460.6 MB, free: 9.035 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02054/0.316, allocations: 8.305 MB / 468.9 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009449/0.3254, allocations: 2.916 MB / 471.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00579/0.3312, allocations: 1.909 MB / 473.7 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01411/0.3453, allocations: 10.04 MB / 483.8 MB, free: 1.805 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02274/0.3681, allocations: 13.17 MB / 497 MB, free: 4.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00774/0.3758, allocations: 5.494 MB / 0.4907 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009585/0.3854, allocations: 6.105 MB / 0.4966 GB, free: 8.867 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003593/0.389, allocations: 1.543 MB / 0.4981 GB, free: 7.324 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004797/0.3938, allocations: 1.902 MB / 0.5 GB, free: 5.422 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003316/0.3971, allocations: 2.996 MB / 0.5029 GB, free: 2.418 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007996/0.4051, allocations: 5.844 MB / 0.5086 GB, free: 12.55 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02415/0.4292, allocations: 20.67 MB / 0.5288 GB, free: 7.816 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.4292, allocations: 0 / 0.5288 GB, free: 7.816 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4293, allocations: 0 / 0.5288 GB, free: 7.816 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003529/0.4296, allocations: 0 / 0.5288 GB, free: 7.816 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.3753/0.8049, allocations: 11.98 MB / 0.5405 GB, free: 93.79 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.805, allocations: 9.438 kB / 0.5405 GB, free: 93.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03037/0.8353, allocations: 5.677 MB / 0.5461 GB, free: 92.4 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01189/0.8472, allocations: 6.364 MB / 0.5523 GB, free: 88.63 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003992/0.8476, allocations: 0.7061 MB / 0.553 GB, free: 88.31 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002726/0.8504, allocations: 0.9262 MB / 0.5539 GB, free: 88.01 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02918/0.8795, allocations: 15.07 MB / 0.5686 GB, free: 73.51 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002785/0.8798, allocations: 19.84 kB / 0.5686 GB, free: 73.49 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001836/0.8816, allocations: 395.6 kB / 0.569 GB, free: 73.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003335/0.882, allocations: 0.5194 MB / 0.5695 GB, free: 72.59 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02068/0.9027, allocations: 13.74 MB / 0.5829 GB, free: 58.83 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05982/0.9625, allocations: 46.51 MB / 0.6283 GB, free: 11.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01173/0.9742, allocations: 8.034 MB / 0.6362 GB, free: 5.133 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003442/0.9777, allocations: 2.796 MB / 0.6389 GB, free: 2.328 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002578/0.9779, allocations: 88.7 kB / 0.639 GB, free: 2.254 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.978, allocations: 74.89 kB / 0.6391 GB, free: 2.172 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 5.5e-06/0.978, allocations: 8 kB / 0.6391 GB, free: 2.164 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.03209/1.01, allocations: 14.7 MB / 0.6534 GB, free: 3.523 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.058e-05/1.01, allocations: 94.48 kB / 0.6535 GB, free: 3.418 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006562/1.017, allocations: 3.603 MB / 0.657 GB, free: 15.82 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003182/1.017, allocations: 93.7 kB / 0.6571 GB, free: 15.72 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003199/1.02, allocations: 4.185 MB / 0.6612 GB, free: 11.52 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001404/1.022, allocations: 1.406 MB / 0.6626 GB, free: 10.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00198/1.024, allocations: 1.172 MB / 0.6637 GB, free: 8.918 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/1.024, allocations: 316.9 kB / 0.664 GB, free: 8.605 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004437/1.028, allocations: 2.588 MB / 0.6666 GB, free: 6.012 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006687/1.035, allocations: 5.083 MB / 0.6715 GB, free: 15.75 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01165/1.046, allocations: 8.34 MB / 0.6797 GB, free: 6.227 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.961e-05/1.047, allocations: 24 kB / 0.6797 GB, free: 6.203 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01509/1.062, allocations: 8.634 MB / 0.6881 GB, free: 13.54 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.067e-05/1.062, allocations: 43.94 kB / 0.6882 GB, free: 13.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001155/1.062, allocations: 80 kB / 0.6882 GB, free: 13.42 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00258/1.064, allocations: 0.8503 MB / 0.6891 GB, free: 12.57 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005077/1.069, allocations: 1.373 MB / 0.6904 GB, free: 11.19 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01275/1.082, allocations: 7.578 MB / 0.6978 GB, free: 3.488 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004257/1.087, allocations: 331.5 kB / 0.6981 GB, free: 3.164 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/1.088, allocations: 304.1 kB / 0.6984 GB, free: 2.867 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.006833/1.094, allocations: 3.519 MB / 0.7019 GB, free: 15.34 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001279/1.096, allocations: 429.2 kB / 0.7023 GB, free: 14.91 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01275/1.108, allocations: 5.961 MB / 0.7081 GB, free: 8.914 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.17e-05/1.108, allocations: 40 kB / 0.7081 GB, free: 8.875 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.062e-05/1.108, allocations: 8 kB / 0.7081 GB, free: 8.867 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.751e-05/1.108, allocations: 23.86 kB / 0.7081 GB, free: 8.844 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03037/1.139, allocations: 14.95 MB / 0.7227 GB, free: 9.742 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.04e-05/1.139, allocations: 8 kB / 0.7228 GB, free: 9.734 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003022/1.142, allocations: 0.6904 MB / 0.7234 GB, free: 9.043 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002267/1.144, allocations: 0.7134 MB / 0.7241 GB, free: 8.328 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003336/1.144, allocations: 91.92 kB / 0.7242 GB, free: 8.238 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/1.155, allocations: 6.611 MB / 0.7307 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/1.155, allocations: 4 kB / 0.7307 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01485/1.17, allocations: 8.753 MB / 0.7392 GB, free: 8.625 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002565/1.173, allocations: 0.8446 MB / 0.74 GB, free: 7.777 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008762/1.173, allocations: 75.95 kB / 0.7401 GB, free: 7.703 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002445/1.176, allocations: 187.9 kB / 0.7403 GB, free: 7.52 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000571/1.176, allocations: 274.5 kB / 0.7406 GB, free: 7.25 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002681/1.177, allocations: 120 kB / 0.7407 GB, free: 7.133 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004629/1.181, allocations: 2.412 MB / 0.743 GB, free: 4.734 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/1.181, allocations: 0 / 0.743 GB, free: 4.734 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005492/1.187, allocations: 1.555 MB / 0.7445 GB, free: 3.18 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.0006086/1.187, allocations: 262.4 kB / 0.7448 GB, free: 2.914 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2035/1.391, allocations: 6.269 MB / 0.7509 GB, free: 192.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/1.391, allocations: 3.969 kB / 0.7509 GB, free: 192.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004464/1.395, allocations: 2.725 MB / 0.7536 GB, free: 191.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004518/1.4, allocations: 0.9567 MB / 0.7545 GB, free: 191.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02409/1.424, allocations: 16.06 MB / 0.7702 GB, free: 184.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005094/1.429, allocations: 5.967 MB / 0.776 GB, free: 181.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004164/1.433, allocations: 1.879 MB / 0.7779 GB, free: 180.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009307/1.434, allocations: 343.9 kB / 0.7782 GB, free: 179.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.303e-06/1.434, allocations: 0 / 0.7782 GB, free: 179.8 MB / 0.545 GB Notification: Performance of Templates: time 0.09282/1.527, allocations: 65.32 MB / 0.842 GB, free: 115.1 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/jenkins/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/jenkins/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: 7.696094684302807]