Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009291/0.0009291, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9295/0.9295, allocations: 173.4 MB / 200.4 MB, free: 9.465 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 318.5 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.089e-05, allocations: 2.281 kB / 318.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01983/0.01985, allocations: 24.61 MB / 343.1 MB, free: 13.61 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01395/0.03381, allocations: 8.092 MB / 351.2 MB, free: 5.492 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004592/0.0384, allocations: 250.8 kB / 351.4 MB, free: 5.246 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009989/0.04839, allocations: 8.063 MB / 359.5 MB, free: 13.16 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007265/0.05565, allocations: 2.899 MB / 362.4 MB, free: 10.25 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002981/0.05863, allocations: 1.845 MB / 364.2 MB, free: 8.41 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009384/0.06802, allocations: 10.36 MB / 374.6 MB, free: 14.01 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01526/0.08328, allocations: 13.9 MB / 388.5 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009354/0.09263, allocations: 8.12 MB / 396.6 MB, free: 7.84 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005663/0.0983, allocations: 5.227 MB / 401.8 MB, free: 2.602 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001679/0.09998, allocations: 1.539 MB / 403.4 MB, free: 1.062 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002221/0.1022, allocations: 1.902 MB / 405.3 MB, free: 15.16 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001825/0.104, allocations: 3.047 MB / 408.3 MB, free: 12.11 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003041/0.1071, allocations: 3.91 MB / 412.2 MB, free: 8.188 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01406/0.1211, allocations: 20.92 MB / 433.2 MB, free: 3.211 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1211, allocations: 3.938 kB / 433.2 MB, free: 3.207 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1211, allocations: 0 / 433.2 MB, free: 3.207 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003809/0.1215, allocations: 4 kB / 433.2 MB, free: 3.203 MB / 394.7 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.02035/0.1419, allocations: 11.87 MB / 445 MB, free: 7.234 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.1419, allocations: 8.031 kB / 445 MB, free: 7.227 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002076/0.144, allocations: 1.547 MB / 446.6 MB, free: 5.668 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1656/0.3096, allocations: 5.682 MB / 452.3 MB, free: 110 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01091/0.3205, allocations: 6.363 MB / 458.6 MB, free: 107.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005217/0.321, allocations: 0.7117 MB / 459.4 MB, free: 107.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002393/0.3234, allocations: 0.9286 MB / 460.3 MB, free: 107.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01679/0.3402, allocations: 15.23 MB / 475.5 MB, free: 95.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001522/0.3404, allocations: 15.94 kB / 475.5 MB, free: 95.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006313/0.341, allocations: 390.4 kB / 475.9 MB, free: 95.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002497/0.3412, allocations: 0.5205 MB / 476.4 MB, free: 94.56 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01436/0.3556, allocations: 13.69 MB / 490.1 MB, free: 80.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03988/0.3955, allocations: 42.71 MB / 0.5203 GB, free: 37.44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006956/0.4024, allocations: 7.942 MB / 0.5281 GB, free: 30.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002285/0.4047, allocations: 2.799 MB / 0.5308 GB, free: 27.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001799/0.4049, allocations: 74.97 kB / 0.5309 GB, free: 27.85 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.4049, allocations: 73.58 kB / 0.531 GB, free: 27.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=384): time 5.7e-06/0.4049, allocations: 4 kB / 0.531 GB, free: 27.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=392): time 0.01631/0.4213, allocations: 14.66 MB / 0.5453 GB, free: 13.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.4213, allocations: 91.8 kB / 0.5454 GB, free: 12.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003404/0.4247, allocations: 3.734 MB / 0.549 GB, free: 9.242 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001458/0.4248, allocations: 89.7 kB / 0.5491 GB, free: 9.148 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001112/0.426, allocations: 4.171 MB / 0.5532 GB, free: 4.969 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005085/0.4265, allocations: 1.389 MB / 0.5545 GB, free: 3.598 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009844/0.4275, allocations: 1.16 MB / 0.5557 GB, free: 2.426 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.683e-05/0.4275, allocations: 305.1 kB / 0.556 GB, free: 2.125 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002371/0.4298, allocations: 2.589 MB / 0.5585 GB, free: 15.53 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004121/0.434, allocations: 5.112 MB / 0.5635 GB, free: 9.238 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007321/0.4413, allocations: 8.329 MB / 0.5716 GB, free: 15.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-05/0.4413, allocations: 24 kB / 0.5716 GB, free: 15.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.009912/0.4513, allocations: 8.618 MB / 0.5801 GB, free: 7.043 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/0.4513, allocations: 43.94 kB / 0.5801 GB, free: 7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.892e-05/0.4514, allocations: 84 kB / 0.5802 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/0.4528, allocations: 0.8397 MB / 0.581 GB, free: 6.078 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002667/0.4554, allocations: 1.365 MB / 0.5823 GB, free: 4.711 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007219/0.4626, allocations: 7.386 MB / 0.5895 GB, free: 13.22 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002385/0.465, allocations: 331.5 kB / 0.5899 GB, free: 12.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003227/0.4653, allocations: 308 kB / 0.5902 GB, free: 12.59 MB / 458.7 MB 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.004578/0.4699, allocations: 3.521 MB / 0.5936 GB, free: 9.059 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005294/0.4705, allocations: 425.2 kB / 0.594 GB, free: 8.641 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006766/0.4772, allocations: 5.953 MB / 0.5998 GB, free: 2.652 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.11e-05/0.4772, allocations: 40 kB / 0.5999 GB, free: 2.613 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.4773, allocations: 4 kB / 0.5999 GB, free: 2.609 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-05/0.4773, allocations: 27.86 kB / 0.5999 GB, free: 2.582 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01579/0.4931, allocations: 14.31 MB / 0.6139 GB, free: 4.227 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.4931, allocations: 4 kB / 0.6139 GB, free: 4.223 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/0.4944, allocations: 0.6904 MB / 0.6145 GB, free: 3.531 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.4955, allocations: 0.6975 MB / 0.6152 GB, free: 2.832 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002173/0.4957, allocations: 87.92 kB / 0.6153 GB, free: 2.746 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1817/0.6774, allocations: 6.425 MB / 0.6216 GB, free: 151.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.6774, allocations: 3.5 kB / 0.6216 GB, free: 151.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00791/0.6854, allocations: 8.72 MB / 0.6301 GB, free: 148.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/0.6866, allocations: 0.8489 MB / 0.6309 GB, free: 148.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002935/0.6869, allocations: 73 kB / 0.631 GB, free: 148.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009266/0.6879, allocations: 182.8 kB / 0.6312 GB, free: 148.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002818/0.6881, allocations: 284.8 kB / 0.6314 GB, free: 148.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001472/0.6883, allocations: 113.8 kB / 0.6315 GB, free: 148.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002423/0.6907, allocations: 2.407 MB / 0.6339 GB, free: 147.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 8e-08/0.6907, allocations: 2.281 kB / 0.6339 GB, free: 147.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002813/0.6935, allocations: 1.545 MB / 0.6354 GB, free: 147.3 MB / 474.7 MB 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.007169/0.7007, allocations: 9.444 MB / 0.6446 GB, free: 143.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005906/0.7066, allocations: 6.256 MB / 0.6507 GB, free: 137.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.7066, allocations: 4 kB / 0.6507 GB, free: 137.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002265/0.7089, allocations: 2.726 MB / 0.6534 GB, free: 135.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002512/0.7114, allocations: 0.9612 MB / 0.6543 GB, free: 134.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04776/0.7591, allocations: 52.63 MB / 0.7057 GB, free: 81.64 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003222/0.7624, allocations: 5.529 MB / 0.7111 GB, free: 76.06 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002757/0.7651, allocations: 1.882 MB / 0.713 GB, free: 74.17 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002177/0.7673, allocations: 3.214 MB / 0.7161 GB, free: 70.96 MB / 474.7 MB Notification: Performance of SimCode: time 1.282e-06/0.7673, allocations: 0 / 0.7161 GB, free: 70.96 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.263/1.03, allocations: 122.4 MB / 0.8356 GB, free: 154.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/12.49, allocations: 4.062 kB / 0.8356 GB, free: 154.2 MB / 490.7 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 14.645818743854761]