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.001154/0.001154, allocations: 103.3 kB / 17.16 MB, free: 6.316 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.001163/0.001163, allocations: 190 kB / 18.07 MB, free: 5.414 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.25/1.25, allocations: 205.1 MB / 223.9 MB, free: 12.39 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.001021/0.001021, allocations: 44.3 kB / 280.1 MB, free: 3.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06675/0.06778, allocations: 46.62 MB / 326.7 MB, free: 4.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02355/0.09137, allocations: 28.69 MB / 355.4 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01371/0.1051, allocations: 8.452 MB / 363.9 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004979/0.1101, allocations: 175.4 kB / 364 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01602/0.1262, allocations: 7.76 MB / 371.8 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008853/0.1351, allocations: 2.777 MB / 374.6 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004872/0.14, allocations: 1.785 MB / 376.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1593/0.2993, allocations: 10.57 MB / 386.9 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0255/0.3249, allocations: 17.91 MB / 404.8 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007868/0.3328, allocations: 4.87 MB / 409.7 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008625/0.3415, allocations: 6.108 MB / 415.8 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004012/0.3455, allocations: 1.109 MB / 416.9 MB, free: 0 / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01137/0.3569, allocations: 1.923 MB / 418.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004459/0.3614, allocations: 2.648 MB / 421.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01203/0.3734, allocations: 5.571 MB / 427.1 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02063/0.3941, allocations: 20.72 MB / 447.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3941, allocations: 0 / 447.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3942, allocations: 4 kB / 447.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005844/0.3948, allocations: 0 / 447.8 MB, free: 3.414 MB / 350.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.03148/0.4262, allocations: 12.49 MB / 460.3 MB, free: 6.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.4263, allocations: 12.03 kB / 460.3 MB, free: 6.918 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003207/0.4295, allocations: 1.633 MB / 461.9 MB, free: 5.281 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04281/0.4723, allocations: 8.585 MB / 470.5 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0112/0.4836, allocations: 5.889 MB / 476.4 MB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004715/0.4841, allocations: 0.7411 MB / 477.1 MB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002209/0.4863, allocations: 0.9836 MB / 478.1 MB, free: 5.434 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0287/0.515, allocations: 16.58 MB / 494.7 MB, free: 4.805 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002091/0.5153, allocations: 19.8 kB / 494.7 MB, free: 4.785 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001088/0.5164, allocations: 416.9 kB / 495.1 MB, free: 4.391 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000484/0.5169, allocations: 0.6029 MB / 495.7 MB, free: 3.785 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02995/0.5468, allocations: 15.97 MB / 0.4997 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3372/0.884, allocations: 52.13 MB / 0.5506 GB, free: 121.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02311/0.9072, allocations: 52.26 MB / 0.6017 GB, free: 71.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004801/0.912, allocations: 3.461 MB / 0.605 GB, free: 71.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01277/0.9248, allocations: 9.406 MB / 0.6142 GB, free: 67.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/0.9249, allocations: 60.41 kB / 0.6143 GB, free: 67.78 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 4.849e-06/0.9249, allocations: 0 / 0.6143 GB, free: 67.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02135/0.9463, allocations: 12.88 MB / 0.6269 GB, free: 60.97 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.9463, allocations: 83.91 kB / 0.6269 GB, free: 60.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004534/0.9509, allocations: 4.065 MB / 0.6309 GB, free: 58.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002693/0.9512, allocations: 77.39 kB / 0.631 GB, free: 58.63 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001709/0.9529, allocations: 4.635 MB / 0.6355 GB, free: 54.58 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000676/0.9536, allocations: 0.9866 MB / 0.6365 GB, free: 53.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001328/0.9549, allocations: 1.234 MB / 0.6377 GB, free: 53.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.929e-05/0.9549, allocations: 305.1 kB / 0.638 GB, free: 52.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002745/0.9577, allocations: 2.452 MB / 0.6404 GB, free: 51.42 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003563/0.9613, allocations: 5.605 MB / 0.6458 GB, free: 45.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007123/0.9684, allocations: 8.687 MB / 0.6543 GB, free: 37.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.433e-05/0.9685, allocations: 32 kB / 0.6543 GB, free: 37.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01101/0.9795, allocations: 8.737 MB / 0.6629 GB, free: 28.41 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.602e-05/0.9796, allocations: 52.19 kB / 0.6629 GB, free: 28.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001056/0.9797, allocations: 115.2 kB / 0.663 GB, free: 28.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001923/0.9816, allocations: 0.8485 MB / 0.6639 GB, free: 27.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00383/0.9855, allocations: 1.415 MB / 0.6652 GB, free: 25.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007464/0.9929, allocations: 6.981 MB / 0.6721 GB, free: 18.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004206/0.9972, allocations: 355.2 kB / 0.6724 GB, free: 18.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008176/0.998, allocations: 352 kB / 0.6727 GB, free: 18.17 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.004746/1.003, allocations: 3.68 MB / 0.6763 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007876/1.004, allocations: 407 kB / 0.6767 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006907/1.01, allocations: 5.062 MB / 0.6817 GB, free: 8.953 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.786e-05/1.011, allocations: 28 kB / 0.6817 GB, free: 8.926 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/1.011, allocations: 12 kB / 0.6817 GB, free: 8.914 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.313e-05/1.011, allocations: 15.94 kB / 0.6817 GB, free: 8.898 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01816/1.029, allocations: 12.2 MB / 0.6936 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/1.029, allocations: 4 kB / 0.6936 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00211/1.031, allocations: 0.5148 MB / 0.6941 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001908/1.033, allocations: 0.6975 MB / 0.6948 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002925/1.033, allocations: 67.98 kB / 0.6949 GB, free: 11.33 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007664/1.041, allocations: 6.146 MB / 0.7009 GB, free: 5.043 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/1.041, allocations: 4 kB / 0.7009 GB, free: 5.039 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1931/1.234, allocations: 7.317 MB / 0.708 GB, free: 148.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002343/1.236, allocations: 0.7997 MB / 0.7088 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008644/1.237, allocations: 57.84 kB / 0.7089 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001907/1.239, allocations: 166.3 kB / 0.709 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004831/1.24, allocations: 203.6 kB / 0.7092 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001701/1.24, allocations: 85.36 kB / 0.7093 GB, free: 148 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003995/1.244, allocations: 2.674 MB / 0.7119 GB, free: 147.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.244, allocations: 0 / 0.7119 GB, free: 147.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007033/1.251, allocations: 1.553 MB / 0.7134 GB, free: 147.6 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.0117/1.263, allocations: 8.003 MB / 0.7212 GB, free: 144 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008022/1.271, allocations: 6.109 MB / 0.7272 GB, free: 141.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/1.271, allocations: 2.688 kB / 0.7272 GB, free: 141.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003393/1.274, allocations: 2.465 MB / 0.7296 GB, free: 140.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004759/1.279, allocations: 0.8951 MB / 0.7305 GB, free: 140.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0902/1.369, allocations: 67.41 MB / 0.7963 GB, free: 81.28 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005315/1.374, allocations: 6.208 MB / 0.8024 GB, free: 75.04 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004806/1.379, allocations: 1.939 MB / 0.8043 GB, free: 73.09 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004067/1.383, allocations: 3.381 MB / 0.8076 GB, free: 69.71 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/1.383, allocations: 0 / 0.8076 GB, free: 69.71 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.421/2.804, allocations: 116.7 MB / 0.9216 GB, free: 117.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/2.804, allocations: 285.2 kB / 0.9218 GB, free: 117.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.189/6.994, allocations: 0 / 0.9218 GB, free: 117.5 MB / 462.1 MB (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","../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