Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001526/0.001526, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001671/0.001671, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.547/1.547, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 59.89 kB / 358.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3478, allocations: 50.55 MB / 408.9 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0326/0.3805, allocations: 28.62 MB / 437.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02002/0.4006, allocations: 8.481 MB / 446 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007643/0.4083, allocations: 211.4 kB / 446.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0208/0.4291, allocations: 8.166 MB / 454.3 MB, free: 3.781 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01303/0.4422, allocations: 2.789 MB / 457.1 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006835/0.449, allocations: 1.886 MB / 459 MB, free: 15.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01686/0.4659, allocations: 10.02 MB / 469 MB, free: 5.039 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03759/0.5035, allocations: 21.36 MB / 490.4 MB, free: 15.54 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01086/0.5145, allocations: 5.349 MB / 495.7 MB, free: 10.18 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01253/0.527, allocations: 6.074 MB / 0.4901 GB, free: 4.086 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005219/0.5323, allocations: 1.543 MB / 0.4916 GB, free: 2.543 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007606/0.5399, allocations: 1.929 MB / 0.4934 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005245/0.5452, allocations: 2.981 MB / 0.4964 GB, free: 13.62 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01206/0.5573, allocations: 5.844 MB / 0.5021 GB, free: 7.754 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0306/0.588, allocations: 20.69 MB / 0.5223 GB, free: 3 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.072e-05/0.588, allocations: 4 kB / 0.5223 GB, free: 2.996 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.588, allocations: 0 / 0.5223 GB, free: 2.996 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000655/0.5887, allocations: 0 / 0.5223 GB, free: 2.996 MB / 446.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.04579/0.6345, allocations: 12.09 MB / 0.5341 GB, free: 6.793 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/0.6346, allocations: 11.97 kB / 0.5341 GB, free: 6.781 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006915/0.6415, allocations: 1.547 MB / 0.5356 GB, free: 5.223 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4883/1.13, allocations: 5.593 MB / 0.5411 GB, free: 111.1 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0131/1.143, allocations: 6.332 MB / 0.5472 GB, free: 108.8 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004637/1.143, allocations: 0.7091 MB / 0.5479 GB, free: 108.5 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002832/1.146, allocations: 0.9279 MB / 0.5488 GB, free: 108.2 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03801/1.184, allocations: 15.11 MB / 0.5636 GB, free: 101.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003356/1.185, allocations: 13.92 kB / 0.5636 GB, free: 101.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002292/1.187, allocations: 390.5 kB / 0.564 GB, free: 100.9 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000574/1.188, allocations: 0.5185 MB / 0.5645 GB, free: 100.4 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02721/1.215, allocations: 13.79 MB / 0.578 GB, free: 86.58 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06275/1.278, allocations: 47.7 MB / 0.6245 GB, free: 38.36 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01465/1.292, allocations: 28.62 MB / 0.6525 GB, free: 6.031 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00398/1.296, allocations: 3.085 MB / 0.6555 GB, free: 2.941 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003455/1.297, allocations: 340.8 kB / 0.6558 GB, free: 2.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/1.297, allocations: 77.58 kB / 0.6559 GB, free: 2.484 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.06e-06/1.297, allocations: 3.938 kB / 0.6559 GB, free: 2.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03076/1.328, allocations: 14.93 MB / 0.6705 GB, free: 3.648 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.087e-05/1.328, allocations: 90.48 kB / 0.6706 GB, free: 3.547 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005598/1.333, allocations: 3.609 MB / 0.6741 GB, free: 15.94 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004615/1.334, allocations: 89.7 kB / 0.6742 GB, free: 15.85 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003147/1.337, allocations: 4.198 MB / 0.6783 GB, free: 11.64 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001442/1.338, allocations: 1.403 MB / 0.6797 GB, free: 10.26 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001755/1.34, allocations: 1.18 MB / 0.6808 GB, free: 9.066 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/1.34, allocations: 301.1 kB / 0.6811 GB, free: 8.77 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004139/1.344, allocations: 2.596 MB / 0.6836 GB, free: 6.168 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006363/1.351, allocations: 5.092 MB / 0.6886 GB, free: 15.9 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01176/1.363, allocations: 8.352 MB / 0.6968 GB, free: 6.363 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.926e-05/1.363, allocations: 24 kB / 0.6968 GB, free: 6.34 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01622/1.379, allocations: 8.67 MB / 0.7052 GB, free: 13.64 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.137e-05/1.379, allocations: 44.03 kB / 0.7053 GB, free: 13.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001593/1.379, allocations: 87.94 kB / 0.7054 GB, free: 13.52 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002571/1.382, allocations: 0.8535 MB / 0.7062 GB, free: 12.66 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005004/1.387, allocations: 1.376 MB / 0.7075 GB, free: 11.29 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01208/1.399, allocations: 7.68 MB / 0.715 GB, free: 3.461 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004255/1.403, allocations: 335.5 kB / 0.7154 GB, free: 3.133 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001073/1.404, allocations: 308 kB / 0.7157 GB, free: 2.832 MB / 0.5138 GB 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.007312/1.412, allocations: 3.515 MB / 0.7191 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001353/1.413, allocations: 425.3 kB / 0.7195 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/1.424, allocations: 5.984 MB / 0.7253 GB, free: 8.863 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-05/1.424, allocations: 40 kB / 0.7254 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/1.424, allocations: 8 kB / 0.7254 GB, free: 8.816 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-05/1.424, allocations: 19.92 kB / 0.7254 GB, free: 8.797 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02703/1.451, allocations: 14.99 MB / 0.7401 GB, free: 9.691 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/1.451, allocations: 4 kB / 0.7401 GB, free: 9.688 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002669/1.454, allocations: 0.6943 MB / 0.7407 GB, free: 8.992 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002021/1.456, allocations: 0.706 MB / 0.7414 GB, free: 8.285 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000254/1.456, allocations: 91.91 kB / 0.7415 GB, free: 8.195 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009626/1.466, allocations: 6.721 MB / 0.7481 GB, free: 1.336 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.837e-06/1.466, allocations: 8 kB / 0.7481 GB, free: 1.328 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2373/1.703, allocations: 8.794 MB / 0.7567 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001652/1.705, allocations: 0.907 MB / 0.7576 GB, free: 183.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004787/1.705, allocations: 75.61 kB / 0.7576 GB, free: 183.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001639/1.707, allocations: 191.2 kB / 0.7578 GB, free: 183.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004547/1.707, allocations: 262.7 kB / 0.7581 GB, free: 183.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002046/1.708, allocations: 122.7 kB / 0.7582 GB, free: 183.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00297/1.711, allocations: 2.41 MB / 0.7605 GB, free: 182.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/1.711, allocations: 0.5312 kB / 0.7605 GB, free: 182.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00443/1.715, allocations: 1.554 MB / 0.762 GB, free: 182.1 MB / 0.545 GB 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.0103/1.725, allocations: 9.519 MB / 0.7713 GB, free: 177.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008615/1.734, allocations: 6.553 MB / 0.7777 GB, free: 175.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.974e-06/1.734, allocations: 0 / 0.7777 GB, free: 175.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003764/1.738, allocations: 2.96 MB / 0.7806 GB, free: 174.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00435/1.742, allocations: 0.9722 MB / 0.7816 GB, free: 173.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07195/1.814, allocations: 52.62 MB / 0.833 GB, free: 123.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004504/1.819, allocations: 5.975 MB / 0.8388 GB, free: 117.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003836/1.823, allocations: 1.877 MB / 0.8406 GB, free: 115.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003072/1.826, allocations: 3.237 MB / 0.8438 GB, free: 112.7 MB / 0.545 GB Notification: Performance of SimCode: time 8.12e-07/1.826, allocations: 0 / 0.8438 GB, free: 112.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3531/2.179, allocations: 119.1 MB / 0.9601 GB, free: 156.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.14/21.32, allocations: 2 kB / 0.9601 GB, free: 156.5 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches