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.0008095/0.0008095, allocations: 96.62 kB / 17.3 MB, free: 6.391 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.0008759/0.0008762, allocations: 176.4 kB / 18.21 MB, free: 5.551 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.221/1.221, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004437/0.0004437, allocations: 16.47 kB / 281.5 MB, free: 3.285 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07856/0.07902, allocations: 47.58 MB / 329.1 MB, free: 3.637 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02381/0.1029, allocations: 27.46 MB / 356.5 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01508/0.118, allocations: 8.394 MB / 364.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003935/0.122, allocations: 175.4 kB / 365.1 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004281/0.1263, allocations: 1.789 MB / 366.9 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007535/0.1338, allocations: 2.754 MB / 369.6 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003483/0.1373, allocations: 1.579 MB / 371.2 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.168/0.3053, allocations: 10.58 MB / 381.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02976/0.3351, allocations: 21.46 MB / 403.3 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004964/0.3401, allocations: 3.946 MB / 407.2 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006124/0.3462, allocations: 4.901 MB / 412.1 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001026/0.3473, allocations: 0.6132 MB / 412.7 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001991/0.3493, allocations: 0.9688 MB / 413.7 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001363/0.3506, allocations: 2.006 MB / 415.7 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003946/0.3546, allocations: 4.846 MB / 420.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01663/0.3712, allocations: 19.9 MB / 440.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3713, allocations: 3.938 kB / 440.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3713, allocations: 0 / 440.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004104/0.3717, allocations: 0 / 440.5 MB, free: 13.06 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.0248/0.3965, allocations: 10.25 MB / 450.7 MB, free: 2.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.3966, allocations: 8.031 kB / 450.7 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004081/0.4007, allocations: 1.644 MB / 452.4 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04441/0.4451, allocations: 8.611 MB / 461 MB, free: 8.605 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01421/0.4594, allocations: 5.904 MB / 466.9 MB, free: 2.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008464/0.4602, allocations: 0.7451 MB / 467.6 MB, free: 2.207 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004736/0.465, allocations: 0.9754 MB / 468.6 MB, free: 1.242 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03964/0.5046, allocations: 16.59 MB / 485.2 MB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002969/0.505, allocations: 15.81 kB / 485.2 MB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001429/0.5064, allocations: 420.9 kB / 485.6 MB, free: 200 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005853/0.507, allocations: 0.6104 MB / 486.2 MB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02715/0.5342, allocations: 15.96 MB / 0.4904 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2251/0.7593, allocations: 52.28 MB / 0.5415 GB, free: 127.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02803/0.7874, allocations: 52.22 MB / 0.5925 GB, free: 78.24 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004508/0.792, allocations: 3.458 MB / 0.5958 GB, free: 78.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01268/0.8047, allocations: 9.425 MB / 0.605 GB, free: 77.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.8047, allocations: 62.25 kB / 0.6051 GB, free: 77.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 4.017e-06/0.8047, allocations: 0 / 0.6051 GB, free: 77.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02107/0.8258, allocations: 12.9 MB / 0.6177 GB, free: 72.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.8259, allocations: 80.03 kB / 0.6178 GB, free: 72.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004643/0.8305, allocations: 4.063 MB / 0.6217 GB, free: 70.49 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001515/0.8307, allocations: 72.33 kB / 0.6218 GB, free: 70.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001567/0.8322, allocations: 4.64 MB / 0.6263 GB, free: 66.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004982/0.8327, allocations: 0.9926 MB / 0.6273 GB, free: 66.18 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004767/0.8332, allocations: 482.3 kB / 0.6278 GB, free: 65.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.824e-05/0.8333, allocations: 304.8 kB / 0.6281 GB, free: 65.67 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002717/0.836, allocations: 2.446 MB / 0.6305 GB, free: 64.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004192/0.8402, allocations: 5.595 MB / 0.6359 GB, free: 59.56 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006844/0.8471, allocations: 8.691 MB / 0.6444 GB, free: 51.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.15e-05/0.8471, allocations: 35.94 kB / 0.6444 GB, free: 51.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01045/0.8576, allocations: 8.735 MB / 0.653 GB, free: 42.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.479e-05/0.8576, allocations: 52 kB / 0.653 GB, free: 42.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.533e-05/0.8577, allocations: 112 kB / 0.6531 GB, free: 42.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001912/0.8596, allocations: 0.8582 MB / 0.654 GB, free: 41.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003563/0.8632, allocations: 1.4 MB / 0.6553 GB, free: 40.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00763/0.8709, allocations: 7.005 MB / 0.6622 GB, free: 33.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003344/0.8742, allocations: 351.2 kB / 0.6625 GB, free: 32.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003365/0.8746, allocations: 348 kB / 0.6628 GB, free: 32.56 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.004457/0.879, allocations: 3.684 MB / 0.6664 GB, free: 28.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000604/0.8796, allocations: 399 kB / 0.6668 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006855/0.8865, allocations: 5.07 MB / 0.6718 GB, free: 23.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.48e-05/0.8865, allocations: 32 kB / 0.6718 GB, free: 23.31 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/0.8865, allocations: 4 kB / 0.6718 GB, free: 23.31 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-05/0.8866, allocations: 23.86 kB / 0.6718 GB, free: 23.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01492/0.9015, allocations: 12.2 MB / 0.6837 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.497e-06/0.9015, allocations: 4.438 kB / 0.6837 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001862/0.9034, allocations: 0.5227 MB / 0.6843 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001587/0.905, allocations: 0.6836 MB / 0.6849 GB, free: 9.785 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/0.9051, allocations: 75.97 kB / 0.685 GB, free: 9.711 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006553/0.9117, allocations: 6.15 MB / 0.691 GB, free: 3.418 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.9117, allocations: 4 kB / 0.691 GB, free: 3.414 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009071/0.9208, allocations: 7.316 MB / 0.6981 GB, free: 11.95 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001379/0.9222, allocations: 0.8238 MB / 0.699 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003895/0.9226, allocations: 52 kB / 0.699 GB, free: 11.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/0.9242, allocations: 171.8 kB / 0.6992 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003495/0.9245, allocations: 202 kB / 0.6994 GB, free: 10.69 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001678/0.9247, allocations: 87.97 kB / 0.6994 GB, free: 10.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003464/0.9282, allocations: 2.676 MB / 0.7021 GB, free: 7.914 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.9282, allocations: 0 / 0.7021 GB, free: 7.914 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004585/0.9328, allocations: 1.546 MB / 0.7036 GB, free: 6.371 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.1655/1.098, allocations: 7.999 MB / 0.7114 GB, free: 148 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008907/1.107, allocations: 6.105 MB / 0.7173 GB, free: 147.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/1.107, allocations: 0 / 0.7173 GB, free: 147.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00342/1.111, allocations: 2.477 MB / 0.7198 GB, free: 146.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005489/1.116, allocations: 0.8911 MB / 0.7206 GB, free: 146.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07523/1.191, allocations: 67.47 MB / 0.7865 GB, free: 95.22 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004399/1.196, allocations: 6.21 MB / 0.7926 GB, free: 90.41 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004384/1.2, allocations: 1.945 MB / 0.7945 GB, free: 89.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002824/1.203, allocations: 3.379 MB / 0.7978 GB, free: 85.97 MB / 462.1 MB Notification: Performance of SimCode: time 6.61e-07/1.203, allocations: 0 / 0.7978 GB, free: 85.97 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.27/2.473, allocations: 115.3 MB / 0.9104 GB, free: 144.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001673/2.473, allocations: 286.3 kB / 0.9106 GB, free: 144.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.825/7.298, allocations: 0 / 0.9106 GB, free: 144.4 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