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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 106.5 kB / 17.73 MB, free: 5.367 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.001783/0.001783, allocations: 191 kB / 18.66 MB, free: 4.445 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.41/1.41, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.00133/0.001331, allocations: 51.92 kB / 328.1 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08659/0.08793, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2035/0.2915, allocations: 29.21 MB / 403.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02024/0.3118, allocations: 8.528 MB / 412.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008425/0.3202, allocations: 183.4 kB / 412.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0198/0.3401, allocations: 8.208 MB / 420.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01136/0.3515, allocations: 3.027 MB / 423.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006012/0.3575, allocations: 1.899 MB / 425.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01453/0.3721, allocations: 10.51 MB / 436.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03211/0.4042, allocations: 21.46 MB / 457.7 MB, free: 12.78 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008748/0.413, allocations: 5.614 MB / 463.3 MB, free: 7.148 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01032/0.4234, allocations: 6.369 MB / 469.7 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005208/0.4286, allocations: 1.578 MB / 471.3 MB, free: 15.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006598/0.4353, allocations: 1.941 MB / 473.2 MB, free: 13.24 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003819/0.4391, allocations: 3.187 MB / 476.4 MB, free: 10.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009568/0.4487, allocations: 6.124 MB / 482.5 MB, free: 3.895 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.023/0.4718, allocations: 21.19 MB / 0.4919 GB, free: 14.64 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/0.4718, allocations: 4 kB / 0.4919 GB, free: 14.64 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.4718, allocations: 3.984 kB / 0.4919 GB, free: 14.64 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005677/0.4724, allocations: 0 / 0.4919 GB, free: 14.64 MB / 430.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.03549/0.5079, allocations: 12.43 MB / 0.504 GB, free: 2.105 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/0.508, allocations: 15.83 kB / 0.5041 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006019/0.514, allocations: 1.647 MB / 0.5057 GB, free: 440 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04711/0.5611, allocations: 8.599 MB / 0.5141 GB, free: 7.805 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01574/0.5769, allocations: 5.903 MB / 0.5198 GB, free: 1.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008036/0.5778, allocations: 0.7387 MB / 0.5205 GB, free: 1.098 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004166/0.582, allocations: 0.9841 MB / 0.5215 GB, free: 116 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03957/0.6216, allocations: 16.58 MB / 0.5377 GB, free: 15.45 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004361/0.622, allocations: 19.89 kB / 0.5377 GB, free: 15.43 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002923/0.625, allocations: 411.9 kB / 0.5381 GB, free: 15.02 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006746/0.6257, allocations: 0.6028 MB / 0.5387 GB, free: 14.42 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3482/0.9739, allocations: 15.98 MB / 0.5543 GB, free: 134.3 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09576/1.07, allocations: 51.61 MB / 0.6047 GB, free: 102.7 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02667/1.096, allocations: 52.27 MB / 0.6557 GB, free: 48.44 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00499/1.101, allocations: 3.461 MB / 0.6591 GB, free: 46.67 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01705/1.119, allocations: 9.404 MB / 0.6683 GB, free: 37.57 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/1.119, allocations: 56.69 kB / 0.6684 GB, free: 37.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 4.218e-06/1.119, allocations: 0 / 0.6684 GB, free: 37.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02617/1.145, allocations: 12.93 MB / 0.681 GB, free: 24.46 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.858e-05/1.145, allocations: 85.53 kB / 0.6811 GB, free: 24.36 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007519/1.152, allocations: 4.068 MB / 0.685 GB, free: 20.27 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005556/1.153, allocations: 69.7 kB / 0.6851 GB, free: 20.19 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002349/1.155, allocations: 4.634 MB / 0.6896 GB, free: 15.53 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001307/1.157, allocations: 0.9954 MB / 0.6906 GB, free: 14.54 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002981/1.16, allocations: 1.226 MB / 0.6918 GB, free: 13.3 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.808e-05/1.16, allocations: 301.1 kB / 0.6921 GB, free: 13.01 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003684/1.163, allocations: 2.452 MB / 0.6945 GB, free: 10.55 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005364/1.169, allocations: 5.607 MB / 0.7 GB, free: 3.41 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01134/1.18, allocations: 8.686 MB / 0.7084 GB, free: 9.152 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001355/1.18, allocations: 32 kB / 0.7085 GB, free: 9.121 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01775/1.198, allocations: 8.758 MB / 0.717 GB, free: 316 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001384/1.198, allocations: 52 kB / 0.7171 GB, free: 264 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001793/1.199, allocations: 108.1 kB / 0.7172 GB, free: 156 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00261/1.201, allocations: 0.8691 MB / 0.718 GB, free: 15.28 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005135/1.206, allocations: 1.408 MB / 0.7194 GB, free: 13.87 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/1.218, allocations: 7.564 MB / 0.7268 GB, free: 6.16 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005182/1.223, allocations: 347.3 kB / 0.7271 GB, free: 5.82 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/1.224, allocations: 348 kB / 0.7275 GB, free: 5.48 MB / 0.4982 GB 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.00728/1.231, allocations: 3.68 MB / 0.731 GB, free: 1.785 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001292/1.233, allocations: 407 kB / 0.7314 GB, free: 1.383 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/1.243, allocations: 5.082 MB / 0.7364 GB, free: 12.25 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.473e-05/1.243, allocations: 31.94 kB / 0.7364 GB, free: 12.21 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.91e-05/1.243, allocations: 8 kB / 0.7364 GB, free: 12.21 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.382e-05/1.243, allocations: 15.94 kB / 0.7364 GB, free: 12.19 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2151/1.458, allocations: 12.21 MB / 0.7484 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.009e-05/1.458, allocations: 3.844 kB / 0.7484 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002561/1.461, allocations: 0.5227 MB / 0.7489 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002268/1.463, allocations: 0.7028 MB / 0.7496 GB, free: 171.3 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004048/1.463, allocations: 69.56 kB / 0.7496 GB, free: 171.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009049/1.472, allocations: 6.7 MB / 0.7562 GB, free: 169.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.473, allocations: 4.422 kB / 0.7562 GB, free: 169.6 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01111/1.484, allocations: 7.342 MB / 0.7634 GB, free: 166.5 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002099/1.486, allocations: 0.8032 MB / 0.7641 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005546/1.486, allocations: 58.64 kB / 0.7642 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001788/1.488, allocations: 164.9 kB / 0.7644 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005278/1.489, allocations: 202 kB / 0.7646 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002022/1.489, allocations: 86.77 kB / 0.7646 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004783/1.494, allocations: 2.685 MB / 0.7673 GB, free: 165.1 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.01e-07/1.494, allocations: 0 / 0.7673 GB, free: 165.1 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006388/1.5, allocations: 1.55 MB / 0.7688 GB, free: 164.9 MB / 0.5138 GB 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.01061/1.511, allocations: 8.019 MB / 0.7766 GB, free: 161.3 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008704/1.519, allocations: 6.138 MB / 0.7826 GB, free: 159 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/1.519, allocations: 3.938 kB / 0.7826 GB, free: 159 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003649/1.523, allocations: 2.48 MB / 0.785 GB, free: 157.9 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004647/1.528, allocations: 0.9605 MB / 0.786 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0828/1.611, allocations: 54.62 MB / 0.8393 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009262/1.62, allocations: 6.208 MB / 0.8454 GB, free: 100.3 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005441/1.625, allocations: 1.943 MB / 0.8473 GB, free: 98.4 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005252/1.631, allocations: 3.385 MB / 0.8506 GB, free: 95.01 MB / 0.5138 GB Notification: Performance of SimCode: time 1.282e-06/1.631, allocations: 0 / 0.8506 GB, free: 95.01 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.703/5.333, allocations: 117.5 MB / 0.9653 GB, free: 155.1 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.05/26.39, allocations: 3.281 kB / 0.9653 GB, free: 155.1 MB / 0.5138 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > 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