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.001073/0.001073, allocations: 102.9 kB / 17.58 MB, free: 5.453 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.001015/0.001015, allocations: 187.9 kB / 18.51 MB, free: 4.531 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.368/1.368, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001378/0.001378, allocations: 60.12 kB / 280.8 MB, free: 3.051 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1029, allocations: 46.63 MB / 327.4 MB, free: 4.352 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03243/0.1354, allocations: 29.19 MB / 356.6 MB, free: 7.016 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02132/0.1567, allocations: 8.549 MB / 365.2 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007896/0.1647, allocations: 183.4 kB / 365.3 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01947/0.1842, allocations: 8.183 MB / 373.5 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01102/0.1953, allocations: 3.043 MB / 376.6 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00633/0.2016, allocations: 1.905 MB / 378.5 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1968/0.3984, allocations: 10.41 MB / 388.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03051/0.429, allocations: 21.54 MB / 410.4 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01288/0.4419, allocations: 5.849 MB / 416.3 MB, free: 0 / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01361/0.4556, allocations: 6.514 MB / 422.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006121/0.4618, allocations: 1.578 MB / 424.4 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007816/0.4696, allocations: 1.941 MB / 426.3 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005867/0.4755, allocations: 3.193 MB / 429.5 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01257/0.4881, allocations: 6.128 MB / 435.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02391/0.5121, allocations: 21.06 MB / 456.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.5121, allocations: 3.938 kB / 456.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5121, allocations: 0 / 456.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006056/0.5127, allocations: 4 kB / 456.7 MB, free: 10.93 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.03567/0.5484, allocations: 12.47 MB / 469.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.5485, allocations: 19.89 kB / 469.2 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005107/0.5536, allocations: 1.641 MB / 470.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04561/0.5992, allocations: 8.577 MB / 479.4 MB, free: 4.309 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0131/0.6123, allocations: 5.889 MB / 485.3 MB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007491/0.6131, allocations: 0.7496 MB / 486 MB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003802/0.6169, allocations: 0.9796 MB / 487 MB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04095/0.6579, allocations: 16.59 MB / 0.4918 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004811/0.6584, allocations: 11.91 kB / 0.4918 GB, free: 12.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003441/0.6619, allocations: 412.1 kB / 0.4922 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006709/0.6626, allocations: 0.6107 MB / 0.4928 GB, free: 11.31 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03276/0.6953, allocations: 15.97 MB / 0.5084 GB, free: 11.33 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4058/1.101, allocations: 52.16 MB / 0.5593 GB, free: 120.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02472/1.126, allocations: 52.28 MB / 0.6104 GB, free: 70.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0051/1.131, allocations: 3.462 MB / 0.6138 GB, free: 69.04 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01714/1.148, allocations: 9.428 MB / 0.623 GB, free: 63.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.09e-05/1.148, allocations: 64.88 kB / 0.623 GB, free: 63.71 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 5.481e-06/1.148, allocations: 0 / 0.623 GB, free: 63.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02607/1.174, allocations: 12.94 MB / 0.6357 GB, free: 56.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/1.175, allocations: 80 kB / 0.6357 GB, free: 56.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006118/1.181, allocations: 4.067 MB / 0.6397 GB, free: 53.83 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002915/1.181, allocations: 73.61 kB / 0.6398 GB, free: 53.76 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00196/1.183, allocations: 4.628 MB / 0.6443 GB, free: 49.72 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008211/1.184, allocations: 0.9932 MB / 0.6453 GB, free: 48.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001975/1.186, allocations: 1.233 MB / 0.6465 GB, free: 48.16 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.109e-05/1.186, allocations: 305.1 kB / 0.6468 GB, free: 47.86 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003219/1.189, allocations: 2.451 MB / 0.6492 GB, free: 45.88 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004241/1.193, allocations: 5.607 MB / 0.6546 GB, free: 38.79 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01128/1.205, allocations: 8.69 MB / 0.6631 GB, free: 28.54 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001198/1.205, allocations: 28 kB / 0.6632 GB, free: 28.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.02093/1.226, allocations: 8.756 MB / 0.6717 GB, free: 19.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001092/1.226, allocations: 52 kB / 0.6718 GB, free: 19.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001508/1.226, allocations: 108 kB / 0.6719 GB, free: 19.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00251/1.229, allocations: 0.8727 MB / 0.6727 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004254/1.233, allocations: 1.408 MB / 0.6741 GB, free: 17.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008516/1.241, allocations: 7.568 MB / 0.6815 GB, free: 9.559 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004775/1.246, allocations: 355.1 kB / 0.6818 GB, free: 9.215 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006589/1.247, allocations: 348 kB / 0.6821 GB, free: 8.875 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.005421/1.252, allocations: 3.688 MB / 0.6857 GB, free: 5.172 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009809/1.253, allocations: 399 kB / 0.6861 GB, free: 4.777 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008291/1.262, allocations: 5.086 MB / 0.6911 GB, free: 15.63 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.242e-05/1.262, allocations: 32 kB / 0.6911 GB, free: 15.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-05/1.262, allocations: 8 kB / 0.6911 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.272e-05/1.262, allocations: 11.95 kB / 0.6911 GB, free: 15.58 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02489/1.287, allocations: 12.22 MB / 0.7031 GB, free: 3.273 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/1.287, allocations: 4 kB / 0.7031 GB, free: 3.27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00243/1.289, allocations: 0.5226 MB / 0.7036 GB, free: 2.746 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002177/1.291, allocations: 0.7074 MB / 0.7043 GB, free: 2.035 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003502/1.292, allocations: 63.98 kB / 0.7043 GB, free: 1.973 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1796/1.471, allocations: 6.705 MB / 0.7109 GB, free: 148.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/1.471, allocations: 4.75 kB / 0.7109 GB, free: 148.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0111/1.482, allocations: 7.338 MB / 0.7181 GB, free: 145.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002049/1.484, allocations: 0.8068 MB / 0.7189 GB, free: 145.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00066/1.485, allocations: 54.47 kB / 0.7189 GB, free: 145.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001851/1.487, allocations: 164.4 kB / 0.7191 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006055/1.488, allocations: 206.7 kB / 0.7193 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001748/1.488, allocations: 91.06 kB / 0.7193 GB, free: 145.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00407/1.492, allocations: 2.675 MB / 0.722 GB, free: 144.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.71e-07/1.492, allocations: 0 / 0.722 GB, free: 144.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006118/1.498, allocations: 1.558 MB / 0.7235 GB, free: 144.3 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.01052/1.509, allocations: 8.027 MB / 0.7313 GB, free: 140.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01631/1.525, allocations: 9.104 MB / 0.7402 GB, free: 138.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/1.525, allocations: 3.906 kB / 0.7402 GB, free: 138.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003945/1.529, allocations: 2.478 MB / 0.7426 GB, free: 137.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005261/1.534, allocations: 0.9488 MB / 0.7436 GB, free: 136.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08811/1.622, allocations: 63.49 MB / 0.8056 GB, free: 72.31 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008366/1.631, allocations: 6.204 MB / 0.8116 GB, free: 66.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005685/1.636, allocations: 1.947 MB / 0.8135 GB, free: 64.12 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004663/1.641, allocations: 3.385 MB / 0.8168 GB, free: 60.73 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/1.641, allocations: 0 / 0.8168 GB, free: 60.73 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3464/1.988, allocations: 119 MB / 0.9331 GB, free: 111.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/13.2, allocations: 6.031 kB / 0.9331 GB, free: 111.1 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","/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