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_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008171/0.0008172, allocations: 87.34 kB / 16.31 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008839/0.0008842, allocations: 183.8 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 223.3 MB / 241.2 MB, free: 5.281 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002307/0.0002307, allocations: 6.938 kB / 300.8 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08045/0.0807, allocations: 50.43 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03205/0.1128, allocations: 32.62 MB / 383.9 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01776/0.1306, allocations: 9.282 MB / 393.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004351/0.135, allocations: 247.2 kB / 393.4 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004491/0.1395, allocations: 1.845 MB / 395.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008373/0.1479, allocations: 3.22 MB / 398.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003989/0.1519, allocations: 1.505 MB / 400 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01815/0.17, allocations: 15.46 MB / 415.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2046/0.3747, allocations: 20.38 MB / 435.8 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008656/0.3834, allocations: 5.174 MB / 441 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01104/0.3945, allocations: 5.873 MB / 446.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003136/0.3977, allocations: 0.7961 MB / 447.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005108/0.4028, allocations: 1.153 MB / 448.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002535/0.4053, allocations: 2.507 MB / 451.3 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003854/0.4092, allocations: 2.631 MB / 454 MB, free: 6.391 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03913/0.4484, allocations: 24.47 MB / 478.4 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.4484, allocations: 128 / 478.4 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.4484, allocations: 64 / 478.4 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 0.0007275/0.4491, allocations: 0 / 478.4 MB, free: 0 / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.03588/0.485, allocations: 13.37 MB / 491.8 MB, free: 6.543 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.4851, allocations: 12.03 kB / 491.8 MB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03522/0.5203, allocations: 6.393 MB / 498.2 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01668/0.537, allocations: 8.179 MB / 0.4945 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009029/0.5379, allocations: 0.9014 MB / 0.4954 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003961/0.5419, allocations: 1.196 MB / 0.4966 GB, free: 9.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04028/0.5822, allocations: 18.7 MB / 0.5148 GB, free: 6.289 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002348/0.5825, allocations: 15.89 kB / 0.5148 GB, free: 6.273 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001325/0.5838, allocations: 0.4969 MB / 0.5153 GB, free: 5.789 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006168/0.5844, allocations: 0.6532 MB / 0.516 GB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02977/0.6142, allocations: 16.94 MB / 0.5325 GB, free: 4.191 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2967/0.9109, allocations: 62.75 MB / 0.5938 GB, free: 79.39 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02133/0.9323, allocations: 29.72 MB / 0.6228 GB, free: 56.19 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005432/0.9378, allocations: 4.067 MB / 0.6268 GB, free: 56.13 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01565/0.9534, allocations: 10.21 MB / 0.6367 GB, free: 55.28 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.332e-05/0.9535, allocations: 80.44 kB / 0.6368 GB, free: 55.23 MB / 462.1 MB Notification: Performance of pre-optimization done (n=408): time 6.202e-06/0.9535, allocations: 0 / 0.6368 GB, free: 55.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=418): time 0.0407/0.9942, allocations: 21.71 MB / 0.658 GB, free: 50.45 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.761e-05/0.9943, allocations: 121.8 kB / 0.6581 GB, free: 50.35 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006163/1, allocations: 5.116 MB / 0.6631 GB, free: 49.76 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004304/1.001, allocations: 95.89 kB / 0.6632 GB, free: 49.68 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002525/1.003, allocations: 5.343 MB / 0.6684 GB, free: 45.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001042/1.005, allocations: 1.442 MB / 0.6699 GB, free: 44.05 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000321/1.005, allocations: 132.7 kB / 0.67 GB, free: 43.95 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002615/1.005, allocations: 0.567 MB / 0.6705 GB, free: 43.45 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003814/1.009, allocations: 2.869 MB / 0.6733 GB, free: 41.91 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004392/1.013, allocations: 5.376 MB / 0.6786 GB, free: 37.03 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005155/1.019, allocations: 4.038 MB / 0.6825 GB, free: 34.85 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.27e-05/1.019, allocations: 28.81 kB / 0.6826 GB, free: 34.85 MB / 462.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.01349/1.032, allocations: 9.724 MB / 0.6921 GB, free: 27.26 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.274e-05/1.032, allocations: 40.66 kB / 0.6921 GB, free: 27.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.985e-05/1.032, allocations: 80 kB / 0.6922 GB, free: 27.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002528/1.035, allocations: 1.144 MB / 0.6933 GB, free: 26 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004461/1.039, allocations: 1.451 MB / 0.6947 GB, free: 24.65 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01192/1.051, allocations: 12.49 MB / 0.7069 GB, free: 11.69 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005003/1.056, allocations: 359.7 kB / 0.7072 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009392/1.057, allocations: 330.6 kB / 0.7076 GB, free: 11.02 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (767): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(10,48.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006425/1.064, allocations: 4.226 MB / 0.7117 GB, free: 6.883 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/1.065, allocations: 0.5286 MB / 0.7122 GB, free: 6.348 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01116/1.076, allocations: 7.166 MB / 0.7192 GB, free: 15.13 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007114/1.083, allocations: 4.295 MB / 0.7234 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.021e-05/1.083, allocations: 16 kB / 0.7234 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.763e-05/1.083, allocations: 23.92 kB / 0.7234 GB, free: 10.79 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03008/1.113, allocations: 17.07 MB / 0.7401 GB, free: 9.672 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.659e-05/1.113, allocations: 4 kB / 0.7401 GB, free: 9.668 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002954/1.116, allocations: 0.6911 MB / 0.7408 GB, free: 9.012 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003188/1.119, allocations: 1.186 MB / 0.7419 GB, free: 7.812 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003485/1.12, allocations: 99.95 kB / 0.742 GB, free: 7.715 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01805/1.138, allocations: 16.03 MB / 0.7577 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/1.138, allocations: 7 kB / 0.7577 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01734/1.155, allocations: 10.38 MB / 0.7678 GB, free: 12.46 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002999/1.158, allocations: 1.139 MB / 0.7689 GB, free: 11.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001077/1.159, allocations: 80 kB / 0.769 GB, free: 11.22 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002316/1.162, allocations: 223.8 kB / 0.7692 GB, free: 11 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006375/1.162, allocations: 302.9 kB / 0.7695 GB, free: 10.71 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002848/1.163, allocations: 128 kB / 0.7696 GB, free: 10.58 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005699/1.168, allocations: 3.422 MB / 0.773 GB, free: 7.176 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.11e-07/1.168, allocations: 4 kB / 0.773 GB, free: 7.172 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008409/1.177, allocations: 1.956 MB / 0.7749 GB, free: 5.223 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,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) * 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 (356): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,48.0%) 46,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008047/1.178, allocations: 288.9 kB / 0.7752 GB, free: 4.977 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.2041/1.382, allocations: 7.76 MB / 0.7828 GB, free: 181.8 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/1.382, allocations: 2.312 kB / 0.7828 GB, free: 181.8 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006606/1.388, allocations: 4.149 MB / 0.7868 GB, free: 181 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006338/1.395, allocations: 1.378 MB / 0.7882 GB, free: 180.9 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03682/1.432, allocations: 24.64 MB / 0.8122 GB, free: 170.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007562/1.439, allocations: 7.366 MB / 0.8194 GB, free: 169.5 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005951/1.445, allocations: 2.002 MB / 0.8214 GB, free: 169.2 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/1.446, allocations: 398.5 kB / 0.8217 GB, free: 169.2 MB / 0.5138 GB Notification: Performance of SimCode: time 6.51e-07/1.446, allocations: 0 / 0.8217 GB, free: 169.2 MB / 0.5138 GB Notification: Performance of Templates: time 0.1116/1.558, allocations: 79.51 MB / 0.8994 GB, free: 101.5 MB / 0.5138 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_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_Mains/SMPM_Mains.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches