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_Mains.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.00134/0.00134, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.007862/0.007862, allocations: 158.8 kB / 24.69 MB, free: 8.895 MB / 18.57 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 0.8953/0.8953, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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_Mains,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.335e-06/2.335e-06, allocations: 0 / 298.5 MB, free: 3.469 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.21e-05/2.444e-05, allocations: 2.281 kB / 298.5 MB, free: 3.465 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.1507/0.1507, allocations: 32.06 MB / 330.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01878/0.1695, allocations: 9.738 MB / 340.3 MB, free: 3.898 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007152/0.1767, allocations: 280.8 kB / 340.6 MB, free: 3.801 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01285/0.1895, allocations: 9.03 MB / 349.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01223/0.2018, allocations: 4.126 MB / 353.7 MB, free: 7.426 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005933/0.2077, allocations: 2.434 MB / 356.1 MB, free: 4.996 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01554/0.2232, allocations: 14.86 MB / 371 MB, free: 6.082 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02511/0.2483, allocations: 16.92 MB / 387.9 MB, free: 5.008 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01716/0.2655, allocations: 10.93 MB / 398.9 MB, free: 10.06 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01175/0.2772, allocations: 6.915 MB / 405.8 MB, free: 3.129 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004444/0.2817, allocations: 2.031 MB / 407.8 MB, free: 1.098 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00617/0.2879, allocations: 2.429 MB / 410.2 MB, free: 14.67 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004559/0.2924, allocations: 4.172 MB / 414.4 MB, free: 10.48 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01102/0.3034, allocations: 5.294 MB / 419.7 MB, free: 5.18 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02821/0.3316, allocations: 27.34 MB / 447 MB, free: 9.762 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.3317, allocations: 0 / 447 MB, free: 9.762 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3317, allocations: 0 / 447 MB, free: 9.762 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006486/0.3323, allocations: 0 / 447 MB, free: 9.762 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.2685/0.6008, allocations: 16.09 MB / 463.1 MB, free: 107.4 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.6009, allocations: 16.81 kB / 463.1 MB, free: 107.4 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006001/0.6069, allocations: 1.961 MB / 465.1 MB, free: 106.4 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02337/0.6302, allocations: 7.47 MB / 472.6 MB, free: 105.2 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01362/0.6439, allocations: 7.769 MB / 480.3 MB, free: 100.8 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007801/0.6446, allocations: 0.9203 MB / 481.3 MB, free: 100.3 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004134/0.6488, allocations: 1.207 MB / 482.5 MB, free: 99.94 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0381/0.6869, allocations: 19.48 MB / 0.4902 GB, free: 81.46 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004464/0.6873, allocations: 19.89 kB / 0.4902 GB, free: 81.44 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003217/0.6905, allocations: 0.5076 MB / 0.4907 GB, free: 80.95 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004009/0.6909, allocations: 0.6852 MB / 0.4914 GB, free: 80.26 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02714/0.7181, allocations: 17.61 MB / 0.5086 GB, free: 62.62 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07031/0.7884, allocations: 56.31 MB / 0.5636 GB, free: 5.961 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01362/0.802, allocations: 12.41 MB / 0.5757 GB, free: 11.07 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004695/0.8067, allocations: 3.809 MB / 0.5794 GB, free: 7.25 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01475/0.8215, allocations: 10.81 MB / 0.59 GB, free: 12.64 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.495e-05/0.8215, allocations: 77.8 kB / 0.59 GB, free: 12.56 MB / 442.8 MB Notification: Performance of pre-optimization done (n=402): time 5.059e-06/0.8215, allocations: 0 / 0.59 GB, free: 12.56 MB / 442.8 MB Notification: Performance of matching and sorting (n=412): time 0.03011/0.8516, allocations: 19.6 MB / 0.6092 GB, free: 8.82 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.372e-05/0.8517, allocations: 120.4 kB / 0.6093 GB, free: 8.68 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006706/0.8584, allocations: 5.471 MB / 0.6146 GB, free: 3.223 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006499/0.859, allocations: 89.7 kB / 0.6147 GB, free: 3.129 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.151/1.01, allocations: 5.665 MB / 0.6203 GB, free: 144.8 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001568/1.012, allocations: 1.483 MB / 0.6217 GB, free: 143.9 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002026/1.014, allocations: 1.297 MB / 0.623 GB, free: 143.7 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 3.93e-05/1.014, allocations: 303.1 kB / 0.6233 GB, free: 143.4 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003591/1.017, allocations: 2.906 MB / 0.6261 GB, free: 143.2 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004523/1.022, allocations: 5.69 MB / 0.6316 GB, free: 138.5 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00824/1.03, allocations: 9.108 MB / 0.6405 GB, free: 132.1 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001509/1.03, allocations: 25.75 kB / 0.6406 GB, free: 132.1 MB / 458.8 MB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01249/1.043, allocations: 9.916 MB / 0.6503 GB, free: 128 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.872e-05/1.043, allocations: 42.59 kB / 0.6503 GB, free: 128 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001129/1.043, allocations: 89.03 kB / 0.6504 GB, free: 128 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001742/1.045, allocations: 1.136 MB / 0.6515 GB, free: 127.7 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003146/1.048, allocations: 1.523 MB / 0.653 GB, free: 127.6 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00914/1.057, allocations: 12.9 MB / 0.6656 GB, free: 118.6 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004904/1.062, allocations: 368.6 kB / 0.6659 GB, free: 118.5 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009855/1.063, allocations: 344.7 kB / 0.6663 GB, free: 118.5 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 412 * 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 (803): * Single equations (assignments): 797 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (10,46,52.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006239/1.069, allocations: 4.292 MB / 0.6704 GB, free: 115.1 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009812/1.07, allocations: 0.5641 MB / 0.671 GB, free: 114.6 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006931/1.077, allocations: 6.936 MB / 0.6778 GB, free: 108.7 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003592/1.08, allocations: 4.202 MB / 0.6819 GB, free: 104.8 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-05/1.08, allocations: 16 kB / 0.6819 GB, free: 104.8 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.276e-05/1.081, allocations: 19.92 kB / 0.6819 GB, free: 104.7 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01745/1.098, allocations: 16.02 MB / 0.6976 GB, free: 88.64 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-05/1.098, allocations: 4 kB / 0.6976 GB, free: 88.64 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001448/1.099, allocations: 0.691 MB / 0.6982 GB, free: 87.95 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001764/1.101, allocations: 1.181 MB / 0.6994 GB, free: 86.75 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002217/1.101, allocations: 99.91 kB / 0.6995 GB, free: 86.66 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009715/1.111, allocations: 16.54 MB / 0.7156 GB, free: 69.47 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/1.111, allocations: 11.88 kB / 0.7156 GB, free: 69.46 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009979/1.121, allocations: 10.1 MB / 0.7255 GB, free: 59.22 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002145/1.123, allocations: 1.094 MB / 0.7266 GB, free: 58.12 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005965/1.124, allocations: 87.94 kB / 0.7267 GB, free: 58.04 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/1.125, allocations: 215.8 kB / 0.7269 GB, free: 57.83 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004664/1.126, allocations: 315.2 kB / 0.7272 GB, free: 57.52 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001759/1.126, allocations: 128.2 kB / 0.7273 GB, free: 57.39 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.003456/1.129, allocations: 3.542 MB / 0.7307 GB, free: 53.87 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.6e-07/1.129, allocations: 3.938 kB / 0.7307 GB, free: 53.87 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.004902/1.134, allocations: 1.984 MB / 0.7327 GB, free: 51.88 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi) * 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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%), (1,1,100.0%), (10,46,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008992/1.143, allocations: 10.86 MB / 0.7433 GB, free: 40.91 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.007939/1.151, allocations: 7.453 MB / 0.7506 GB, free: 33.39 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/1.151, allocations: 0 / 0.7506 GB, free: 33.39 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003991/1.155, allocations: 3.847 MB / 0.7543 GB, free: 29.46 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004544/1.16, allocations: 1.452 MB / 0.7557 GB, free: 28.02 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2289/1.389, allocations: 68.41 MB / 0.8225 GB, free: 148.4 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006498/1.395, allocations: 7.057 MB / 0.8294 GB, free: 146.3 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.004083/1.399, allocations: 2.078 MB / 0.8315 GB, free: 146.2 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005001/1.404, allocations: 4.395 MB / 0.8358 GB, free: 142.5 MB / 474.8 MB Notification: Performance of SimCode: time 1.372e-06/1.404, allocations: 4 kB / 0.8358 GB, free: 142.5 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3038/1.708, allocations: 164.8 MB / 0.9967 GB, free: 131.9 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/13.94, allocations: 6.281 kB / 0.9967 GB, free: 131.9 MB / 474.8 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 20.090759354643524]