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.001312/0.001312, allocations: 100.7 kB / 20.47 MB, free: 1.129 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.001362/0.001362, allocations: 190.7 kB / 23.76 MB, free: 4.336 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.404/1.404, allocations: 225.7 MB / 252.6 MB, free: 12.79 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.00162/0.00162, allocations: 51.92 kB / 371 MB, free: 9.078 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2326, allocations: 52.17 MB / 423.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03137/0.264, allocations: 24.6 MB / 447.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01673/0.2807, allocations: 8.083 MB / 455.9 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004606/0.2854, allocations: 258.7 kB / 456.1 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01968/0.305, allocations: 7.63 MB / 463.8 MB, free: 5.703 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01018/0.3152, allocations: 2.832 MB / 466.6 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006251/0.3215, allocations: 1.822 MB / 468.4 MB, free: 1.043 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01391/0.3354, allocations: 10.05 MB / 478.5 MB, free: 6.961 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02458/0.3599, allocations: 13.86 MB / 492.3 MB, free: 8.961 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008811/0.3688, allocations: 5.498 MB / 497.8 MB, free: 3.449 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009883/0.3786, allocations: 5.831 MB / 0.4919 GB, free: 13.6 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003935/0.3826, allocations: 1.535 MB / 0.4934 GB, free: 12.06 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005815/0.3884, allocations: 1.89 MB / 0.4952 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004636/0.393, allocations: 2.981 MB / 0.4981 GB, free: 7.184 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008651/0.4017, allocations: 4.541 MB / 0.5026 GB, free: 2.625 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02534/0.427, allocations: 20.75 MB / 0.5228 GB, free: 13.8 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.226e-06/0.427, allocations: 4 kB / 0.5228 GB, free: 13.8 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.427, allocations: 0 / 0.5228 GB, free: 13.8 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005124/0.4275, allocations: 0 / 0.5228 GB, free: 13.8 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.03391/0.4614, allocations: 11.97 MB / 0.5345 GB, free: 1.738 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.4615, allocations: 8.031 kB / 0.5345 GB, free: 1.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2185/0.6799, allocations: 5.681 MB / 0.5401 GB, free: 100.7 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01224/0.6922, allocations: 6.376 MB / 0.5463 GB, free: 97.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005786/0.6928, allocations: 0.6995 MB / 0.547 GB, free: 97.49 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004143/0.6969, allocations: 0.9321 MB / 0.5479 GB, free: 96.88 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03161/0.7285, allocations: 15.21 MB / 0.5627 GB, free: 81.61 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003511/0.7289, allocations: 11.95 kB / 0.5628 GB, free: 81.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002058/0.7309, allocations: 395.2 kB / 0.5631 GB, free: 81.22 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003818/0.7313, allocations: 0.5194 MB / 0.5636 GB, free: 80.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02224/0.7535, allocations: 13.68 MB / 0.577 GB, free: 66.99 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06167/0.8152, allocations: 41.32 MB / 0.6174 GB, free: 24.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01172/0.8269, allocations: 7.946 MB / 0.6251 GB, free: 18.23 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003586/0.8305, allocations: 2.797 MB / 0.6278 GB, free: 15.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003111/0.8308, allocations: 70.97 kB / 0.6279 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.366e-05/0.8309, allocations: 77.58 kB / 0.628 GB, free: 15.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 6.813e-06/0.8309, allocations: 0 / 0.628 GB, free: 15.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02532/0.8562, allocations: 14.64 MB / 0.6423 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.8563, allocations: 90.48 kB / 0.6424 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005923/0.8622, allocations: 3.554 MB / 0.6458 GB, free: 12.93 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004646/0.8626, allocations: 97.62 kB / 0.6459 GB, free: 12.83 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003328/0.866, allocations: 4.182 MB / 0.65 GB, free: 8.641 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001703/0.8677, allocations: 1.412 MB / 0.6514 GB, free: 7.246 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002349/0.87, allocations: 1.168 MB / 0.6525 GB, free: 6.066 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.8702, allocations: 305.1 kB / 0.6528 GB, free: 5.766 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004535/0.8747, allocations: 2.588 MB / 0.6554 GB, free: 3.172 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006797/0.8815, allocations: 5.108 MB / 0.6603 GB, free: 12.88 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01307/0.8946, allocations: 8.337 MB / 0.6685 GB, free: 3.359 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.576e-05/0.8947, allocations: 24 kB / 0.6685 GB, free: 3.336 MB / 478.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01965/0.9143, allocations: 8.607 MB / 0.6769 GB, free: 10.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.824e-05/0.9144, allocations: 44.16 kB / 0.677 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001565/0.9146, allocations: 84 kB / 0.677 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002542/0.9171, allocations: 0.8277 MB / 0.6778 GB, free: 9.742 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00524/0.9224, allocations: 1.373 MB / 0.6792 GB, free: 8.367 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01221/0.9346, allocations: 7.341 MB / 0.6864 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004523/0.9391, allocations: 335.5 kB / 0.6867 GB, free: 0.582 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001013/0.9401, allocations: 304 kB / 0.687 GB, free: 292 kB / 494.1 MB 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.00673/0.9468, allocations: 3.516 MB / 0.6904 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001164/0.948, allocations: 409.4 kB / 0.6908 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0121/0.9601, allocations: 5.946 MB / 0.6966 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.022e-05/0.9601, allocations: 40 kB / 0.6966 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.021e-05/0.9602, allocations: 12 kB / 0.6966 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.316e-05/0.9602, allocations: 19.92 kB / 0.6967 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0271/0.9873, allocations: 13 MB / 0.7094 GB, free: 9.148 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.109e-05/0.9873, allocations: 8.625 kB / 0.7094 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002913/0.9902, allocations: 0.6865 MB / 0.71 GB, free: 8.453 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002127/0.9924, allocations: 0.6973 MB / 0.7107 GB, free: 7.754 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003701/0.9927, allocations: 87.92 kB / 0.7108 GB, free: 7.668 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/1.003, allocations: 6.383 MB / 0.717 GB, free: 1.18 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.828e-06/1.003, allocations: 7.938 kB / 0.7171 GB, free: 1.172 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01644/1.019, allocations: 8.721 MB / 0.7256 GB, free: 8.328 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002756/1.022, allocations: 0.8212 MB / 0.7264 GB, free: 7.504 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001255/1.023, allocations: 79.94 kB / 0.7264 GB, free: 7.426 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002732/1.026, allocations: 187.9 kB / 0.7266 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000872/1.027, allocations: 282.5 kB / 0.7269 GB, free: 6.965 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004698/1.027, allocations: 112 kB / 0.727 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005066/1.033, allocations: 2.279 MB / 0.7292 GB, free: 4.586 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.11e-07/1.033, allocations: 0 / 0.7292 GB, free: 4.586 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006649/1.039, allocations: 1.543 MB / 0.7307 GB, free: 3.043 MB / 0.5294 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.0009144/1.04, allocations: 262.5 kB / 0.731 GB, free: 2.773 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0121/1.052, allocations: 6.261 MB / 0.7371 GB, free: 12.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/1.052, allocations: 0 / 0.7371 GB, free: 12.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005363/1.058, allocations: 2.725 MB / 0.7398 GB, free: 9.77 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005456/1.063, allocations: 0.8907 MB / 0.7406 GB, free: 8.898 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.221/1.284, allocations: 16.02 MB / 0.7563 GB, free: 188.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006263/1.29, allocations: 5.515 MB / 0.7617 GB, free: 188.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004254/1.295, allocations: 1.864 MB / 0.7635 GB, free: 188.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/1.296, allocations: 347.7 kB / 0.7638 GB, free: 188.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.212e-06/1.296, allocations: 1.125 kB / 0.7638 GB, free: 188.4 MB / 0.545 GB Notification: Performance of Templates: time 0.08591/1.382, allocations: 54.78 MB / 0.8173 GB, free: 141.5 MB / 0.545 GB " [Timeout remaining time 659] 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.372985413298011]