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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=2000,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=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 107.3 kB / 18.35 MB, free: 4.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 188.1 kB / 19.29 MB, free: 3.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.322/1.322, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 51.92 kB / 282.1 MB, free: 2.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07558/0.07675, allocations: 46.62 MB / 328.8 MB, free: 3.738 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02843/0.1052, allocations: 29.22 MB / 358 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01524/0.1205, allocations: 8.529 MB / 366.5 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003978/0.1245, allocations: 187.3 kB / 366.7 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01781/0.1424, allocations: 8.187 MB / 374.9 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009359/0.1518, allocations: 3.031 MB / 377.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004856/0.1567, allocations: 1.905 MB / 379.8 MB, free: 468 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1499/0.3066, allocations: 10.49 MB / 390.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02292/0.3296, allocations: 21.46 MB / 411.8 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01026/0.3399, allocations: 5.841 MB / 417.6 MB, free: 0 / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01039/0.3503, allocations: 6.485 MB / 424.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003024/0.3533, allocations: 1.578 MB / 425.7 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004126/0.3575, allocations: 1.932 MB / 427.6 MB, free: 7.785 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002613/0.3601, allocations: 3.187 MB / 430.8 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008031/0.3681, allocations: 6.126 MB / 436.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01817/0.3863, allocations: 21.19 MB / 458.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/0.3864, allocations: 4 kB / 458.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3864, allocations: 0 / 458.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003794/0.3868, allocations: 0 / 458.1 MB, free: 10.61 MB / 366.1 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.03012/0.4169, allocations: 12.44 MB / 470.5 MB, free: 14.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.4169, allocations: 8.031 kB / 470.5 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04632/0.4633, allocations: 8.602 MB / 479.1 MB, free: 5.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01398/0.4773, allocations: 5.904 MB / 485 MB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006206/0.478, allocations: 0.745 MB / 485.8 MB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003072/0.481, allocations: 0.9725 MB / 486.8 MB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0313/0.5123, allocations: 16.57 MB / 0.4915 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002334/0.5126, allocations: 19.8 kB / 0.4916 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001324/0.514, allocations: 415 kB / 0.492 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005721/0.5145, allocations: 0.6106 MB / 0.4925 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02827/0.5428, allocations: 15.97 MB / 0.5081 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3425/0.8854, allocations: 51.57 MB / 0.5585 GB, free: 120.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02372/0.9091, allocations: 52.28 MB / 0.6096 GB, free: 70.71 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004795/0.914, allocations: 3.461 MB / 0.6129 GB, free: 69.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01436/0.9284, allocations: 9.392 MB / 0.6221 GB, free: 64.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.369e-05/0.9285, allocations: 64.19 kB / 0.6222 GB, free: 64.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 5.72e-06/0.9285, allocations: 3.906 kB / 0.6222 GB, free: 64.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02494/0.9534, allocations: 12.93 MB / 0.6348 GB, free: 57.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.9535, allocations: 79.78 kB / 0.6349 GB, free: 57.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005653/0.9592, allocations: 4.062 MB / 0.6388 GB, free: 55.05 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005057/0.9597, allocations: 72.08 kB / 0.6389 GB, free: 54.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002469/0.9622, allocations: 4.64 MB / 0.6434 GB, free: 50.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001526/0.9637, allocations: 0.9918 MB / 0.6444 GB, free: 50.09 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001981/0.9657, allocations: 1.229 MB / 0.6456 GB, free: 49.37 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.282e-05/0.9658, allocations: 305.1 kB / 0.6459 GB, free: 49.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003434/0.9692, allocations: 2.446 MB / 0.6483 GB, free: 47.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004174/0.9734, allocations: 5.603 MB / 0.6538 GB, free: 40.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00805/0.9815, allocations: 8.69 MB / 0.6622 GB, free: 30.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-05/0.9816, allocations: 28 kB / 0.6623 GB, free: 30.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01271/0.9943, allocations: 8.756 MB / 0.6708 GB, free: 21.72 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.624e-05/0.9944, allocations: 52 kB / 0.6709 GB, free: 21.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.292e-05/0.9945, allocations: 112 kB / 0.671 GB, free: 21.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002006/0.9965, allocations: 0.8683 MB / 0.6718 GB, free: 20.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004236/1.001, allocations: 1.404 MB / 0.6732 GB, free: 19.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00845/1.009, allocations: 7.574 MB / 0.6806 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004688/1.014, allocations: 347.3 kB / 0.6809 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009091/1.015, allocations: 349.1 kB / 0.6813 GB, free: 10.89 MB / 446.1 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.005171/1.02, allocations: 3.68 MB / 0.6849 GB, free: 7.199 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001039/1.021, allocations: 407 kB / 0.6852 GB, free: 6.797 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007691/1.029, allocations: 5.084 MB / 0.6902 GB, free: 1.656 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.915e-05/1.029, allocations: 28 kB / 0.6902 GB, free: 1.629 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/1.029, allocations: 8 kB / 0.6902 GB, free: 1.621 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.85e-05/1.029, allocations: 19.88 kB / 0.6903 GB, free: 1.602 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0239/1.053, allocations: 12.2 MB / 0.7022 GB, free: 5.312 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/1.053, allocations: 4 kB / 0.7022 GB, free: 5.309 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002263/1.055, allocations: 0.5187 MB / 0.7027 GB, free: 4.789 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00204/1.057, allocations: 0.6996 MB / 0.7034 GB, free: 4.086 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003033/1.058, allocations: 71.91 kB / 0.7034 GB, free: 4.016 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1718/1.229, allocations: 6.691 MB / 0.71 GB, free: 148.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/1.229, allocations: 9.453 kB / 0.71 GB, free: 148.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01062/1.24, allocations: 7.338 MB / 0.7172 GB, free: 146.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001977/1.242, allocations: 0.8062 MB / 0.7179 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005064/1.242, allocations: 55.5 kB / 0.718 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001718/1.244, allocations: 168.5 kB / 0.7182 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004458/1.245, allocations: 205.6 kB / 0.7183 GB, free: 145.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002103/1.245, allocations: 87.64 kB / 0.7184 GB, free: 145.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003452/1.248, allocations: 2.68 MB / 0.7211 GB, free: 144.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.248, allocations: 1.344 kB / 0.7211 GB, free: 144.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004809/1.253, allocations: 1.554 MB / 0.7226 GB, free: 144.8 MB / 462.1 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.0004179/1.254, allocations: 226.6 kB / 0.7228 GB, free: 144.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007424/1.261, allocations: 6.135 MB / 0.7288 GB, free: 142.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/1.261, allocations: 5.938 kB / 0.7288 GB, free: 142.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003069/1.264, allocations: 2.481 MB / 0.7312 GB, free: 141.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003587/1.268, allocations: 0.9473 MB / 0.7321 GB, free: 140.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02287/1.291, allocations: 16.1 MB / 0.7479 GB, free: 133.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005427/1.296, allocations: 6.2 MB / 0.7539 GB, free: 130.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004333/1.3, allocations: 1.948 MB / 0.7558 GB, free: 129.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008112/1.301, allocations: 322.6 kB / 0.7561 GB, free: 129 MB / 462.1 MB Notification: Performance of SimCode: time 8.92e-07/1.301, allocations: 4 kB / 0.7561 GB, free: 129 MB / 462.1 MB Notification: Performance of Templates: time 0.07785/1.379, allocations: 53.54 MB / 0.8084 GB, free: 76.55 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/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/jenkins1/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) Reference file matches