Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001225/0.001225, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.0013/0.0013, allocations: 206.1 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.336/1.336, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 43.94 kB / 378.6 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2215, allocations: 53.36 MB / 432 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03152/0.253, allocations: 28.8 MB / 460.8 MB, free: 9.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01735/0.2704, allocations: 8.54 MB / 469.3 MB, free: 1.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005893/0.2763, allocations: 254.8 kB / 469.6 MB, free: 1.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01897/0.2952, allocations: 8.303 MB / 477.9 MB, free: 8.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009093/0.3043, allocations: 2.908 MB / 480.8 MB, free: 5.852 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005511/0.3098, allocations: 1.944 MB / 482.7 MB, free: 3.914 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01421/0.324, allocations: 10.1 MB / 492.8 MB, free: 9.781 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.024/0.348, allocations: 14.04 MB / 0.495 GB, free: 11.6 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008765/0.3568, allocations: 5.498 MB / 0.5003 GB, free: 6.09 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01021/0.367, allocations: 6.144 MB / 0.5063 GB, free: 15.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004192/0.3712, allocations: 1.543 MB / 0.5078 GB, free: 14.38 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006104/0.3773, allocations: 1.929 MB / 0.5097 GB, free: 12.45 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004854/0.3822, allocations: 2.989 MB / 0.5127 GB, free: 9.457 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01008/0.3922, allocations: 5.848 MB / 0.5184 GB, free: 3.586 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3971/0.7893, allocations: 20.69 MB / 0.5386 GB, free: 37.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.7893, allocations: 0.5 kB / 0.5386 GB, free: 37.93 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.7893, allocations: 0 / 0.5386 GB, free: 37.93 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004751/0.7898, allocations: 0.5 kB / 0.5386 GB, free: 37.93 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.03238/0.8222, allocations: 12.02 MB / 0.5503 GB, free: 34.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.8222, allocations: 12.12 kB / 0.5503 GB, free: 34.61 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003081/0.8225, allocations: 295 kB / 0.5506 GB, free: 34.56 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004411/0.8269, allocations: 1.537 MB / 0.5521 GB, free: 34.43 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0279/0.8548, allocations: 5.602 MB / 0.5576 GB, free: 33.86 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01266/0.8675, allocations: 6.388 MB / 0.5638 GB, free: 32.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006365/0.8681, allocations: 0.704 MB / 0.5645 GB, free: 32.96 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003235/0.8714, allocations: 0.9326 MB / 0.5654 GB, free: 32.95 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03047/0.9018, allocations: 15.12 MB / 0.5802 GB, free: 23.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003823/0.9022, allocations: 23.89 kB / 0.5802 GB, free: 23.24 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00255/0.9048, allocations: 389.8 kB / 0.5806 GB, free: 22.87 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004033/0.9052, allocations: 0.5195 MB / 0.5811 GB, free: 22.35 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02248/0.9277, allocations: 13.8 MB / 0.5946 GB, free: 8.531 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08108/1.009, allocations: 46.61 MB / 0.6401 GB, free: 9.73 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01569/1.024, allocations: 8.095 MB / 0.648 GB, free: 2.934 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005352/1.03, allocations: 2.827 MB / 0.6507 GB, free: 96 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005424/1.03, allocations: 114.4 kB / 0.6509 GB, free: 16 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.814e-05/1.03, allocations: 88.09 kB / 0.6509 GB, free: 15.9 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=394): time 7.614e-06/1.03, allocations: 0 / 0.6509 GB, free: 15.9 MB / 0.4982 GB Notification: Performance of matching and sorting (n=477): time 0.06579/1.096, allocations: 25.38 MB / 0.6757 GB, free: 6.648 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.295e-05/1.096, allocations: 103.2 kB / 0.6758 GB, free: 6.535 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006495/1.103, allocations: 3.607 MB / 0.6793 GB, free: 2.934 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006475/1.103, allocations: 101.7 kB / 0.6794 GB, free: 2.828 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003305/1.107, allocations: 4.189 MB / 0.6835 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001886/1.109, allocations: 1.697 MB / 0.6852 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002962/1.112, allocations: 1.291 MB / 0.6864 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001295/1.112, allocations: 309.1 kB / 0.6867 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005341/1.117, allocations: 3.07 MB / 0.6897 GB, free: 8.27 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007708/1.125, allocations: 5.612 MB / 0.6952 GB, free: 1.535 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01391/1.139, allocations: 9.447 MB / 0.7044 GB, free: 7.266 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.713e-05/1.139, allocations: 24 kB / 0.7045 GB, free: 7.242 MB / 0.545 GB Notification: Performance of matching and sorting (n=854) (initialization): time 0.02142/1.16, allocations: 10.42 MB / 0.7146 GB, free: 13.35 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001462/1.16, allocations: 47.62 kB / 0.7147 GB, free: 13.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000196/1.161, allocations: 86.52 kB / 0.7148 GB, free: 13.22 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005415/1.166, allocations: 1.682 MB / 0.7164 GB, free: 11.54 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005759/1.172, allocations: 1.44 MB / 0.7178 GB, free: 10.2 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02459/1.196, allocations: 15.8 MB / 0.7333 GB, free: 10.24 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004925/1.201, allocations: 355.5 kB / 0.7336 GB, free: 9.895 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001118/1.202, allocations: 335.9 kB / 0.7339 GB, free: 9.566 MB / 0.5763 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 (760): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,40,65.6%), (8,40,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006847/1.209, allocations: 3.595 MB / 0.7374 GB, free: 6.062 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001492/1.211, allocations: 457.1 kB / 0.7379 GB, free: 5.613 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01591/1.227, allocations: 7.796 MB / 0.7455 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-05/1.227, allocations: 48 kB / 0.7455 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.705e-05/1.227, allocations: 12 kB / 0.7455 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.993e-05/1.227, allocations: 23.91 kB / 0.7456 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2338/1.46, allocations: 18.42 MB / 0.7635 GB, free: 225.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.288e-05/1.461, allocations: 10.81 kB / 0.7636 GB, free: 225.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003007/1.464, allocations: 0.7755 MB / 0.7643 GB, free: 225.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00366/1.467, allocations: 1.452 MB / 0.7657 GB, free: 225.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004441/1.468, allocations: 108.8 kB / 0.7658 GB, free: 225.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01529/1.483, allocations: 13.9 MB / 0.7794 GB, free: 218.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/1.483, allocations: 7.844 kB / 0.7794 GB, free: 218.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01417/1.497, allocations: 11.29 MB / 0.7904 GB, free: 214 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002147/1.499, allocations: 0.988 MB / 0.7914 GB, free: 213.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008694/1.5, allocations: 95.73 kB / 0.7915 GB, free: 213.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002446/1.503, allocations: 206.9 kB / 0.7917 GB, free: 213.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006023/1.503, allocations: 364.3 kB / 0.792 GB, free: 213.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002787/1.503, allocations: 141.2 kB / 0.7922 GB, free: 213.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.003473/1.507, allocations: 2.409 MB / 0.7945 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.01e-07/1.507, allocations: 0 / 0.7945 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005609/1.513, allocations: 1.741 MB / 0.7962 GB, free: 212.4 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (418): * Single equations (assignments): 416 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,38,59.4%), (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.01484/1.527, allocations: 12.03 MB / 0.808 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01134/1.539, allocations: 7.921 MB / 0.8157 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.333e-06/1.539, allocations: 0 / 0.8157 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005656/1.544, allocations: 3.812 MB / 0.8194 GB, free: 191.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005352/1.55, allocations: 0.992 MB / 0.8204 GB, free: 190.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08775/1.637, allocations: 58.5 MB / 0.8775 GB, free: 128.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00797/1.645, allocations: 6.148 MB / 0.8835 GB, free: 122.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004864/1.65, allocations: 1.946 MB / 0.8854 GB, free: 120.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004622/1.655, allocations: 3.303 MB / 0.8887 GB, free: 117.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.312e-06/1.655, allocations: 0 / 0.8887 GB, free: 117.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3761/2.031, allocations: 141.4 MB / 1.027 GB, free: 217.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.38/23.41, allocations: 13.22 kB / 1.027 GB, free: 217.1 MB / 0.5919 GB " [Timeout remaining time 636] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_1_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_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 27.18299748597201]