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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001681/0.001681, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 51.92 kB / 347.2 MB, free: 9.996 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2878, allocations: 49.16 MB / 396.4 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03237/0.3202, allocations: 29.39 MB / 425.8 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02201/0.3422, allocations: 8.576 MB / 434.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007535/0.3498, allocations: 217.2 kB / 434.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02139/0.3711, allocations: 8.332 MB / 442.9 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01274/0.3839, allocations: 3.144 MB / 446.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007896/0.3918, allocations: 1.972 MB / 448 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01755/0.4093, allocations: 10.58 MB / 458.6 MB, free: 4.895 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03056/0.4399, allocations: 14.2 MB / 472.8 MB, free: 6.551 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01048/0.4504, allocations: 5.739 MB / 478.5 MB, free: 0.7969 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01174/0.4621, allocations: 6.455 MB / 485 MB, free: 10.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004748/0.4669, allocations: 1.578 MB / 486.6 MB, free: 8.742 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006938/0.4738, allocations: 1.945 MB / 488.5 MB, free: 6.797 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005997/0.4798, allocations: 3.199 MB / 491.7 MB, free: 3.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0125/0.4923, allocations: 6.124 MB / 497.9 MB, free: 13.44 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03048/0.5228, allocations: 21.25 MB / 0.5069 GB, free: 8.129 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.5228, allocations: 4 kB / 0.5069 GB, free: 8.125 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5228, allocations: 0 / 0.5069 GB, free: 8.125 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006529/0.5235, allocations: 0 / 0.5069 GB, free: 8.125 MB / 430.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.04/0.5635, allocations: 12.59 MB / 0.5192 GB, free: 11.44 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/0.5635, allocations: 15.98 kB / 0.5192 GB, free: 11.43 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006314/0.5698, allocations: 1.639 MB / 0.5208 GB, free: 9.773 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04841/0.6182, allocations: 8.659 MB / 0.5293 GB, free: 1.098 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01572/0.634, allocations: 5.97 MB / 0.5351 GB, free: 11.05 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008594/0.6348, allocations: 0.7426 MB / 0.5359 GB, free: 10.31 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004139/0.6389, allocations: 0.9726 MB / 0.5368 GB, free: 9.336 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04886/0.6878, allocations: 16.59 MB / 0.553 GB, free: 8.66 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006252/0.6884, allocations: 15.91 kB / 0.553 GB, free: 8.645 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005091/0.6935, allocations: 416 kB / 0.5534 GB, free: 8.238 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009757/0.6945, allocations: 0.6028 MB / 0.554 GB, free: 7.633 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4613/1.156, allocations: 15.98 MB / 0.5696 GB, free: 130.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09626/1.252, allocations: 49.9 MB / 0.6183 GB, free: 96.52 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01816/1.27, allocations: 12.25 MB / 0.6303 GB, free: 87.04 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004769/1.275, allocations: 3.155 MB / 0.6334 GB, free: 83.88 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01757/1.293, allocations: 9.069 MB / 0.6422 GB, free: 75.03 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.79e-05/1.293, allocations: 64.69 kB / 0.6423 GB, free: 74.96 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 5.961e-06/1.293, allocations: 0 / 0.6423 GB, free: 74.96 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.0277/1.32, allocations: 12.89 MB / 0.6549 GB, free: 62.39 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/1.32, allocations: 81.59 kB / 0.655 GB, free: 62.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006651/1.327, allocations: 4.074 MB / 0.6589 GB, free: 58.26 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006306/1.328, allocations: 73.7 kB / 0.659 GB, free: 58.18 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002273/1.33, allocations: 4.806 MB / 0.6637 GB, free: 53.37 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001027/1.331, allocations: 1.04 MB / 0.6647 GB, free: 52.34 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002011/1.333, allocations: 1.238 MB / 0.6659 GB, free: 51.09 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.09e-05/1.333, allocations: 301.1 kB / 0.6662 GB, free: 50.79 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003293/1.336, allocations: 2.448 MB / 0.6686 GB, free: 48.34 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004932/1.341, allocations: 5.603 MB / 0.6741 GB, free: 41.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008554/1.35, allocations: 8.69 MB / 0.6826 GB, free: 30.94 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.871e-05/1.35, allocations: 32 kB / 0.6826 GB, free: 30.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01437/1.364, allocations: 8.75 MB / 0.6911 GB, free: 22.11 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.597e-05/1.364, allocations: 56.94 kB / 0.6912 GB, free: 22.05 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001407/1.364, allocations: 112 kB / 0.6913 GB, free: 21.95 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00215/1.367, allocations: 0.8644 MB / 0.6922 GB, free: 21.08 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004738/1.371, allocations: 1.404 MB / 0.6935 GB, free: 19.67 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009135/1.38, allocations: 7.472 MB / 0.7008 GB, free: 12.08 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004857/1.385, allocations: 351.5 kB / 0.7012 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001129/1.386, allocations: 352 kB / 0.7015 GB, free: 11.39 MB / 478.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.006761/1.393, allocations: 3.68 MB / 0.7051 GB, free: 7.695 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001336/1.395, allocations: 429.2 kB / 0.7055 GB, free: 7.273 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009933/1.404, allocations: 5.055 MB / 0.7104 GB, free: 2.16 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.701e-05/1.404, allocations: 28 kB / 0.7105 GB, free: 2.133 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.59e-05/1.405, allocations: 8 kB / 0.7105 GB, free: 2.125 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.901e-05/1.405, allocations: 15.94 kB / 0.7105 GB, free: 2.109 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03005/1.435, allocations: 12.22 MB / 0.7224 GB, free: 5.762 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.179e-05/1.435, allocations: 4 kB / 0.7224 GB, free: 5.758 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002634/1.437, allocations: 0.5188 MB / 0.7229 GB, free: 5.238 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002319/1.44, allocations: 0.7078 MB / 0.7236 GB, free: 4.527 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005464/1.44, allocations: 71.92 kB / 0.7237 GB, free: 4.457 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0114/1.452, allocations: 6.605 MB / 0.7301 GB, free: 13.73 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/1.452, allocations: 7.938 kB / 0.7301 GB, free: 13.73 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01592/1.467, allocations: 7.341 MB / 0.7373 GB, free: 6.238 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003065/1.471, allocations: 0.7704 MB / 0.7381 GB, free: 5.465 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001336/1.472, allocations: 52 kB / 0.7381 GB, free: 5.414 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002894/1.475, allocations: 167.9 kB / 0.7383 GB, free: 5.25 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008663/1.476, allocations: 213.8 kB / 0.7385 GB, free: 5.039 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004846/1.476, allocations: 87.97 kB / 0.7386 GB, free: 4.953 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.006551/1.483, allocations: 2.68 MB / 0.7412 GB, free: 2.262 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.21e-07/1.483, allocations: 0 / 0.7412 GB, free: 2.262 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.008051/1.491, allocations: 1.551 MB / 0.7427 GB, free: 0.7109 MB / 0.4982 GB 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.01576/1.506, allocations: 8.019 MB / 0.7505 GB, free: 8.535 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01293/1.519, allocations: 5.882 MB / 0.7563 GB, free: 2.633 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/1.519, allocations: 0 / 0.7563 GB, free: 2.633 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005103/1.525, allocations: 2.291 MB / 0.7585 GB, free: 336 kB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2452/1.77, allocations: 0.95 MB / 0.7594 GB, free: 176.2 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1162/1.886, allocations: 55.02 MB / 0.8132 GB, free: 139.1 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01179/1.898, allocations: 6.203 MB / 0.8192 GB, free: 132.9 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005332/1.903, allocations: 1.943 MB / 0.8211 GB, free: 130.9 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005551/1.909, allocations: 3.377 MB / 0.8244 GB, free: 127.6 MB / 0.5138 GB Notification: Performance of SimCode: time 1.113e-06/1.909, allocations: 0 / 0.8244 GB, free: 127.6 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1822/2.091, allocations: 123.7 MB / 0.9452 GB, free: 3.68 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.3/23.39, allocations: 9.781 kB / 0.9452 GB, free: 3.672 MB / 0.5138 GB " [Timeout remaining time 636] (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 --stepSize=0.001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 26.561213145032525]