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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 110 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 35.95 kB / 350.1 MB, free: 56 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.254, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.02751/0.2815, allocations: 36.58 MB / 436.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02167/0.3033, allocations: 9.921 MB / 446 MB, free: 2.703 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01025/0.3136, allocations: 263.1 kB / 446.3 MB, free: 2.445 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02062/0.3343, allocations: 8.528 MB / 454.8 MB, free: 9.898 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01295/0.3473, allocations: 3.562 MB / 458.4 MB, free: 6.324 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007454/0.3548, allocations: 2.216 MB / 460.6 MB, free: 4.117 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02056/0.3753, allocations: 14.5 MB / 475.1 MB, free: 5.57 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03849/0.4139, allocations: 20.92 MB / 496 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01269/0.4266, allocations: 6.156 MB / 0.4904 GB, free: 10.32 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0117/0.4383, allocations: 7.477 MB / 0.4977 GB, free: 2.812 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00428/0.4426, allocations: 1.301 MB / 0.4989 GB, free: 1.512 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1947/0.6374, allocations: 1.686 MB / 0.5006 GB, free: 33.51 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005906/0.6434, allocations: 3.273 MB / 0.5038 GB, free: 33.51 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01474/0.6581, allocations: 7.047 MB / 0.5107 GB, free: 32.57 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02471/0.6829, allocations: 26.28 MB / 0.5363 GB, free: 23.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.6829, allocations: 0 / 0.5363 GB, free: 23.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.6829, allocations: 0 / 0.5363 GB, free: 23.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0007437/0.6837, allocations: 0 / 0.5363 GB, free: 23.93 MB / 378.7 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.04832/0.732, allocations: 15.89 MB / 0.5518 GB, free: 13.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.7321, allocations: 10.53 kB / 0.5519 GB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03417/0.7662, allocations: 6.373 MB / 0.5581 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01733/0.7836, allocations: 8.287 MB / 0.5662 GB, free: 3.559 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006375/0.7843, allocations: 0.9016 MB / 0.5671 GB, free: 2.664 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005135/0.7894, allocations: 1.194 MB / 0.5682 GB, free: 1.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04951/0.839, allocations: 18.79 MB / 0.5866 GB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004081/0.8394, allocations: 19.27 kB / 0.5866 GB, free: 14.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003061/0.8425, allocations: 0.4978 MB / 0.5871 GB, free: 14.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005967/0.8431, allocations: 0.6459 MB / 0.5877 GB, free: 13.47 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03975/0.8829, allocations: 17.01 MB / 0.6043 GB, free: 12.45 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1303/1.013, allocations: 62.61 MB / 0.6655 GB, free: 13.34 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2164/1.23, allocations: 29.74 MB / 0.6945 GB, free: 148.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006586/1.236, allocations: 4.057 MB / 0.6985 GB, free: 148.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01763/1.254, allocations: 10.2 MB / 0.7084 GB, free: 145.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.312e-05/1.254, allocations: 76.53 kB / 0.7085 GB, free: 145.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=408): time 5.51e-06/1.254, allocations: 1.5 kB / 0.7085 GB, free: 145.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=418): time 0.03779/1.292, allocations: 20.37 MB / 0.7284 GB, free: 136.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.137e-05/1.292, allocations: 126 kB / 0.7285 GB, free: 136.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006932/1.299, allocations: 5.152 MB / 0.7336 GB, free: 134.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000907/1.3, allocations: 92.45 kB / 0.7336 GB, free: 134.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002985/1.303, allocations: 5.349 MB / 0.7389 GB, free: 130.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001655/1.305, allocations: 1.438 MB / 0.7403 GB, free: 129.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001979/1.306, allocations: 1.254 MB / 0.7415 GB, free: 128.1 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 4.607e-05/1.307, allocations: 301.1 kB / 0.7418 GB, free: 127.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003624/1.31, allocations: 2.891 MB / 0.7446 GB, free: 125.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004603/1.315, allocations: 5.386 MB / 0.7499 GB, free: 119.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01016/1.325, allocations: 8.806 MB / 0.7585 GB, free: 110 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.211e-05/1.325, allocations: 24 kB / 0.7585 GB, free: 110 MB / 490.7 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.02464/1.35, allocations: 9.759 MB / 0.768 GB, free: 100.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001404/1.35, allocations: 44.03 kB / 0.7681 GB, free: 100.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001658/1.35, allocations: 84 kB / 0.7681 GB, free: 100.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004488/1.355, allocations: 1.122 MB / 0.7692 GB, free: 99.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008541/1.363, allocations: 1.451 MB / 0.7707 GB, free: 97.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02028/1.384, allocations: 12.52 MB / 0.7829 GB, free: 84.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009023/1.393, allocations: 347.5 kB / 0.7832 GB, free: 84.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001899/1.395, allocations: 324 kB / 0.7835 GB, free: 84.13 MB / 490.7 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 (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%), (1,5,100.0%), (1,1,100.0%), (10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01201/1.407, allocations: 4.235 MB / 0.7877 GB, free: 79.88 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002054/1.409, allocations: 0.5325 MB / 0.7882 GB, free: 79.34 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01603/1.425, allocations: 7.164 MB / 0.7952 GB, free: 72.08 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007709/1.432, allocations: 4.305 MB / 0.7994 GB, free: 67.73 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.31e-05/1.433, allocations: 12 kB / 0.7994 GB, free: 67.71 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.302e-05/1.433, allocations: 19.92 kB / 0.7994 GB, free: 67.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03973/1.472, allocations: 17.1 MB / 0.8161 GB, free: 50.47 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-05/1.473, allocations: 6.344 kB / 0.8161 GB, free: 50.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003056/1.476, allocations: 0.691 MB / 0.8168 GB, free: 49.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003591/1.479, allocations: 1.189 MB / 0.8179 GB, free: 48.57 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000876/1.48, allocations: 99.97 kB / 0.818 GB, free: 48.47 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01617/1.496, allocations: 16.01 MB / 0.8337 GB, free: 31.67 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/1.496, allocations: 11.94 kB / 0.8337 GB, free: 31.66 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2785/1.775, allocations: 49.41 MB / 0.8819 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00348/1.778, allocations: 1.119 MB / 0.883 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001327/1.78, allocations: 81.75 kB / 0.8831 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003239/1.783, allocations: 213.9 kB / 0.8833 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008623/1.784, allocations: 310.4 kB / 0.8836 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003754/1.784, allocations: 122.3 kB / 0.8837 GB, free: 139.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008282/1.793, allocations: 3.464 MB / 0.8871 GB, free: 138.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.12e-07/1.793, allocations: 0 / 0.8871 GB, free: 138.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01478/1.807, allocations: 2.453 MB / 0.8895 GB, free: 138.9 MB / 490.7 MB 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 (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%), (10,46,48.0%), (1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001695/1.809, allocations: 293.7 kB / 0.8898 GB, free: 138.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01405/1.823, allocations: 7.782 MB / 0.8974 GB, free: 135.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/1.823, allocations: 3.594 kB / 0.8974 GB, free: 135.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006839/1.83, allocations: 4.141 MB / 0.9014 GB, free: 133.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009687/1.84, allocations: 1.352 MB / 0.9028 GB, free: 133.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05805/1.898, allocations: 29.46 MB / 0.9315 GB, free: 111.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0166/1.915, allocations: 7.502 MB / 0.9388 GB, free: 106.1 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008016/1.923, allocations: 2.009 MB / 0.9408 GB, free: 104.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002053/1.925, allocations: 402 kB / 0.9412 GB, free: 104.3 MB / 490.7 MB Notification: Performance of SimCode: time 1.082e-06/1.925, allocations: 0 / 0.9412 GB, free: 104.3 MB / 490.7 MB Notification: Performance of Templates: time 0.149/2.074, allocations: 93.37 MB / 1.032 GB, free: 14.79 MB / 490.7 MB 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","../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