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) 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 4.0.0+maint.om/package.mo", uses=false) 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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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.001082/0.001083, allocations: 102.7 kB / 16.5 MB, free: 6.688 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.0009942/0.0009943, allocations: 193.9 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 48.42 kB / 300.1 MB, free: 6.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09744/0.09866, allocations: 49.45 MB / 349.5 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2202/0.3189, allocations: 28.05 MB / 377.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01844/0.3374, allocations: 8.321 MB / 385.9 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00966/0.3471, allocations: 208.2 kB / 386.1 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01822/0.3654, allocations: 7.717 MB / 393.8 MB, free: 4.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01165/0.377, allocations: 2.541 MB / 396.4 MB, free: 2.477 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005046/0.3821, allocations: 1.745 MB / 398.1 MB, free: 1.137 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01242/0.3945, allocations: 9.868 MB / 408 MB, free: 11.42 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03108/0.4256, allocations: 17.81 MB / 425.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007148/0.4328, allocations: 4.681 MB / 430.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008748/0.4416, allocations: 5.781 MB / 436.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002916/0.4445, allocations: 1.047 MB / 437.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004752/0.4493, allocations: 1.406 MB / 438.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003428/0.4528, allocations: 2.477 MB / 441.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009456/0.4622, allocations: 5.337 MB / 446.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02174/0.484, allocations: 20.15 MB / 466.7 MB, free: 1.059 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.4841, allocations: 7.984 kB / 466.7 MB, free: 1.051 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4841, allocations: 4 kB / 466.7 MB, free: 1.047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005648/0.4846, allocations: 0 / 466.7 MB, free: 1.047 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.0337/0.5184, allocations: 11.86 MB / 478.6 MB, free: 5.086 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.5184, allocations: 12.03 kB / 478.6 MB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004648/0.5231, allocations: 1.551 MB / 480.1 MB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03027/0.5534, allocations: 5.604 MB / 485.7 MB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01247/0.5659, allocations: 6.125 MB / 491.9 MB, free: 7.707 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006708/0.5666, allocations: 0.7104 MB / 492.6 MB, free: 6.996 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003446/0.5701, allocations: 0.9334 MB / 493.5 MB, free: 6.062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03582/0.6059, allocations: 15.08 MB / 0.4967 GB, free: 6.902 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004144/0.6063, allocations: 11.84 kB / 0.4967 GB, free: 6.891 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002789/0.6092, allocations: 403.9 kB / 0.4971 GB, free: 6.496 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005448/0.6097, allocations: 0.5156 MB / 0.4976 GB, free: 5.977 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0288/0.6385, allocations: 13.74 MB / 0.511 GB, free: 8.215 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3927/1.031, allocations: 47.65 MB / 0.5575 GB, free: 96.04 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02042/1.052, allocations: 28.59 MB / 0.5854 GB, free: 67.24 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006185/1.058, allocations: 3.07 MB / 0.5884 GB, free: 65.68 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005414/1.058, allocations: 238.1 kB / 0.5887 GB, free: 65.47 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.467e-05/1.059, allocations: 72.77 kB / 0.5887 GB, free: 65.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 9.097e-06/1.059, allocations: 0 / 0.5887 GB, free: 65.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.03542/1.094, allocations: 14.72 MB / 0.6031 GB, free: 53.29 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/1.094, allocations: 90.48 kB / 0.6032 GB, free: 53.19 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006118/1.1, allocations: 3.602 MB / 0.6067 GB, free: 49.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006365/1.101, allocations: 89.7 kB / 0.6068 GB, free: 49.5 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002143/1.103, allocations: 4.045 MB / 0.6107 GB, free: 45.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001399/1.104, allocations: 1.339 MB / 0.612 GB, free: 44.1 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00194/1.106, allocations: 1.167 MB / 0.6132 GB, free: 42.92 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.948e-05/1.106, allocations: 309.1 kB / 0.6135 GB, free: 42.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004511/1.111, allocations: 2.588 MB / 0.616 GB, free: 40.02 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005583/1.117, allocations: 5.087 MB / 0.621 GB, free: 33.77 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01213/1.129, allocations: 8.333 MB / 0.6291 GB, free: 24.25 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-05/1.129, allocations: 24 kB / 0.6291 GB, free: 24.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01855/1.147, allocations: 8.613 MB / 0.6375 GB, free: 15.58 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.052e-05/1.148, allocations: 47.97 kB / 0.6376 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/1.148, allocations: 84 kB / 0.6377 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003042/1.151, allocations: 0.8303 MB / 0.6385 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006515/1.157, allocations: 1.373 MB / 0.6398 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01326/1.171, allocations: 7.101 MB / 0.6468 GB, free: 6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006133/1.177, allocations: 331.3 kB / 0.6471 GB, free: 5.676 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/1.178, allocations: 311.9 kB / 0.6474 GB, free: 5.371 MB / 430.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.007101/1.185, allocations: 3.509 MB / 0.6508 GB, free: 1.848 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001358/1.186, allocations: 407 kB / 0.6512 GB, free: 1.445 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01474/1.201, allocations: 5.976 MB / 0.657 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.284e-05/1.201, allocations: 40 kB / 0.6571 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.278e-05/1.201, allocations: 8 kB / 0.6571 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.872e-05/1.201, allocations: 19.92 kB / 0.6571 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03628/1.238, allocations: 15.26 MB / 0.672 GB, free: 11.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.42e-05/1.238, allocations: 4 kB / 0.672 GB, free: 11.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004437/1.242, allocations: 0.6904 MB / 0.6727 GB, free: 11.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003009/1.245, allocations: 0.7018 MB / 0.6734 GB, free: 10.52 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00034/1.245, allocations: 79.98 kB / 0.6734 GB, free: 10.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008496/1.254, allocations: 6.156 MB / 0.6794 GB, free: 4.156 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.254, allocations: 8 kB / 0.6794 GB, free: 4.148 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01234/1.266, allocations: 8.726 MB / 0.688 GB, free: 11.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001722/1.268, allocations: 0.8824 MB / 0.6888 GB, free: 10.39 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004683/1.269, allocations: 79.94 kB / 0.6889 GB, free: 10.31 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/1.27, allocations: 179.8 kB / 0.6891 GB, free: 10.14 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005309/1.271, allocations: 266.7 kB / 0.6893 GB, free: 9.875 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002263/1.271, allocations: 116 kB / 0.6894 GB, free: 9.762 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00329/1.274, allocations: 2.412 MB / 0.6918 GB, free: 7.363 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.21e-07/1.274, allocations: 0 / 0.6918 GB, free: 7.363 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004866/1.279, allocations: 1.546 MB / 0.6933 GB, free: 5.82 MB / 478.1 MB 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.1715/1.451, allocations: 9.454 MB / 0.7025 GB, free: 154.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009523/1.46, allocations: 6.5 MB / 0.7089 GB, free: 152.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/1.46, allocations: 1 kB / 0.7089 GB, free: 152.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00426/1.464, allocations: 2.943 MB / 0.7118 GB, free: 151.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00423/1.469, allocations: 0.903 MB / 0.7126 GB, free: 151.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08143/1.55, allocations: 64.81 MB / 0.7759 GB, free: 100 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004512/1.555, allocations: 5.979 MB / 0.7818 GB, free: 94 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004496/1.559, allocations: 1.877 MB / 0.7836 GB, free: 92.11 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00325/1.563, allocations: 3.222 MB / 0.7868 GB, free: 88.89 MB / 478.1 MB Notification: Performance of SimCode: time 5.51e-07/1.563, allocations: 0 / 0.7868 GB, free: 88.89 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2966/1.859, allocations: 118.7 MB / 0.9027 GB, free: 141.3 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/1.859, allocations: 288.1 kB / 0.903 GB, free: 140.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.492/6.351, allocations: 2.953 kB / 0.903 GB, free: 140.9 MB / 478.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/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/jenkins1/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) Reference file matches