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.001497/0.001497, allocations: 121 kB / 18.5 MB, free: 4.562 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.001572/0.001572, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.398/1.398, allocations: 230.6 MB / 254.8 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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.001464/0.001464, allocations: 51.94 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09733/0.09879, allocations: 53.33 MB / 427.1 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1969/0.2957, allocations: 28.72 MB / 455.8 MB, free: 9.262 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01904/0.3148, allocations: 8.512 MB / 464.3 MB, free: 3.184 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007182/0.322, allocations: 256 kB / 464.6 MB, free: 3.102 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01885/0.3408, allocations: 8.277 MB / 472.8 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009403/0.3502, allocations: 2.84 MB / 475.7 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005445/0.3557, allocations: 1.9 MB / 477.6 MB, free: 10.06 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01318/0.3688, allocations: 10.02 MB / 487.6 MB, free: 3.883 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02646/0.3953, allocations: 16.34 MB / 0.4921 GB, free: 3.965 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008543/0.4038, allocations: 5.455 MB / 0.4974 GB, free: 14.5 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01046/0.4143, allocations: 6.128 MB / 0.5034 GB, free: 8.348 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003778/0.4181, allocations: 1.539 MB / 0.5049 GB, free: 6.809 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005682/0.4238, allocations: 1.925 MB / 0.5068 GB, free: 4.883 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003992/0.4278, allocations: 2.997 MB / 0.5097 GB, free: 1.879 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008086/0.4358, allocations: 5.844 MB / 0.5154 GB, free: 12.01 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0228/0.4586, allocations: 20.7 MB / 0.5357 GB, free: 7.246 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.4586, allocations: 0 / 0.5357 GB, free: 7.246 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4587, allocations: 4 kB / 0.5357 GB, free: 7.242 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004005/0.4591, allocations: 3.938 kB / 0.5357 GB, free: 7.238 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.0331/0.4921, allocations: 12.09 MB / 0.5475 GB, free: 11.04 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.4922, allocations: 8.031 kB / 0.5475 GB, free: 11.03 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003063/0.4925, allocations: 296 kB / 0.5478 GB, free: 10.74 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004536/0.497, allocations: 1.54 MB / 0.5493 GB, free: 9.188 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03124/0.5283, allocations: 5.597 MB / 0.5547 GB, free: 3.57 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01399/0.5423, allocations: 6.341 MB / 0.5609 GB, free: 13.17 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007993/0.5431, allocations: 0.7103 MB / 0.5616 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003637/0.5467, allocations: 0.9296 MB / 0.5625 GB, free: 11.53 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03547/0.5822, allocations: 15.12 MB / 0.5773 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003913/0.5826, allocations: 19.95 kB / 0.5773 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002564/0.5851, allocations: 392 kB / 0.5777 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006191/0.5857, allocations: 0.5195 MB / 0.5782 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02926/0.615, allocations: 13.8 MB / 0.5917 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4755/1.091, allocations: 47.7 MB / 0.6382 GB, free: 128.7 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01838/1.109, allocations: 28.26 MB / 0.6659 GB, free: 103.5 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005319/1.114, allocations: 2.84 MB / 0.6686 GB, free: 103.4 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004975/1.115, allocations: 340.1 kB / 0.6689 GB, free: 103.1 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.74e-05/1.115, allocations: 75.88 kB / 0.669 GB, free: 103.1 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=394): time 6.462e-06/1.115, allocations: 0 / 0.669 GB, free: 103.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=477): time 0.05405/1.169, allocations: 25.62 MB / 0.694 GB, free: 93.09 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/1.169, allocations: 104.4 kB / 0.6941 GB, free: 93.02 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004441/1.173, allocations: 3.61 MB / 0.6977 GB, free: 91.15 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006046/1.174, allocations: 103.2 kB / 0.6978 GB, free: 91.06 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001718/1.176, allocations: 4.187 MB / 0.7019 GB, free: 87.86 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001277/1.177, allocations: 1.692 MB / 0.7035 GB, free: 86.39 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00158/1.179, allocations: 1.291 MB / 0.7048 GB, free: 85.65 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.747e-05/1.179, allocations: 305.1 kB / 0.7051 GB, free: 85.35 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00369/1.182, allocations: 3.067 MB / 0.7081 GB, free: 83.7 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004873/1.187, allocations: 5.613 MB / 0.7135 GB, free: 78.64 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009364/1.196, allocations: 9.445 MB / 0.7228 GB, free: 68.42 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.921e-05/1.197, allocations: 28 kB / 0.7228 GB, free: 68.39 MB / 0.5138 GB Notification: Performance of matching and sorting (n=854) (initialization): time 0.01553/1.212, allocations: 10.43 MB / 0.733 GB, free: 57.95 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.19e-05/1.212, allocations: 42.19 kB / 0.733 GB, free: 57.91 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001137/1.212, allocations: 84 kB / 0.7331 GB, free: 57.83 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004121/1.216, allocations: 1.676 MB / 0.7347 GB, free: 56.15 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004748/1.221, allocations: 1.447 MB / 0.7361 GB, free: 54.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01839/1.24, allocations: 16.01 MB / 0.7518 GB, free: 38.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005652/1.245, allocations: 351.5 kB / 0.7521 GB, free: 38.07 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001152/1.246, allocations: 339.9 kB / 0.7524 GB, free: 37.74 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 (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.005426/1.252, allocations: 3.595 MB / 0.7559 GB, free: 34.13 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001116/1.253, allocations: 461 kB / 0.7564 GB, free: 33.68 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01147/1.264, allocations: 7.786 MB / 0.764 GB, free: 25.86 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-05/1.264, allocations: 51.81 kB / 0.764 GB, free: 25.82 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.015e-05/1.264, allocations: 16 kB / 0.7641 GB, free: 25.8 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.937e-05/1.264, allocations: 23.91 kB / 0.7641 GB, free: 25.78 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02704/1.291, allocations: 18.42 MB / 0.7821 GB, free: 7.238 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.057e-05/1.291, allocations: 11.94 kB / 0.7821 GB, free: 7.227 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002778/1.294, allocations: 0.7645 MB / 0.7828 GB, free: 6.461 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003641/1.298, allocations: 1.45 MB / 0.7842 GB, free: 5.004 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005523/1.298, allocations: 108 kB / 0.7843 GB, free: 4.898 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01945/1.318, allocations: 14.11 MB / 0.7981 GB, free: 6.523 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.16e-05/1.318, allocations: 11.94 kB / 0.7981 GB, free: 6.512 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02009/1.338, allocations: 11.28 MB / 0.8091 GB, free: 11.11 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002826/1.341, allocations: 1.045 MB / 0.8102 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008418/1.342, allocations: 84 kB / 0.8102 GB, free: 9.965 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002486/1.344, allocations: 207.9 kB / 0.8104 GB, free: 9.762 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000875/1.345, allocations: 339.1 kB / 0.8108 GB, free: 9.43 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003485/1.345, allocations: 140 kB / 0.8109 GB, free: 9.293 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004647/1.35, allocations: 2.416 MB / 0.8133 GB, free: 6.891 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.51e-07/1.35, allocations: 0 / 0.8133 GB, free: 6.891 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007795/1.358, allocations: 1.742 MB / 0.815 GB, free: 5.148 MB / 0.545 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.0213/1.379, allocations: 12.04 MB / 0.8267 GB, free: 8.996 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01583/1.395, allocations: 7.939 MB / 0.8345 GB, free: 1.051 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.565e-05/1.395, allocations: 4 kB / 0.8345 GB, free: 1.047 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.2124/1.607, allocations: 3.78 MB / 0.8382 GB, free: 193 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005025/1.612, allocations: 0.9902 MB / 0.8391 GB, free: 192.9 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08824/1.701, allocations: 58.37 MB / 0.8961 GB, free: 160.6 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006217/1.707, allocations: 6.146 MB / 0.9021 GB, free: 154.4 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004532/1.711, allocations: 1.947 MB / 0.904 GB, free: 152.5 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004152/1.716, allocations: 3.303 MB / 0.9073 GB, free: 149.1 MB / 0.5607 GB Notification: Performance of SimCode: time 7.62e-07/1.716, allocations: 0 / 0.9073 GB, free: 149.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1648/1.88, allocations: 135.5 MB / 1.04 GB, free: 14.29 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.22/21.1, allocations: 11.78 kB / 1.04 GB, free: 14.28 MB / 0.5607 GB " [Timeout remaining time 639] (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: 24.80820504098665]