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.0009141/0.0009144, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 221.5 MB / 230.3 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000882/0.000882, allocations: 83.41 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.071e-05/2.071e-05, allocations: 4 kB / 337.1 MB, free: 9.988 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1084, allocations: 50.42 MB / 387.5 MB, free: 7.527 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4374/0.5459, allocations: 158.3 MB / 0.533 GB, free: 404 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003227/0.5463, allocations: 100.8 kB / 0.5331 GB, free: 304 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.58/2.127, allocations: 383.1 MB / 0.9072 GB, free: 31.48 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.304e-06/2.127, allocations: 0 / 0.9072 GB, free: 31.48 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001373/2.128, allocations: 275.4 kB / 0.9074 GB, free: 31.45 MB / 458.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.04804/2.176, allocations: 11.15 MB / 0.9183 GB, free: 27.96 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.662e-05/2.176, allocations: 11.45 kB / 0.9183 GB, free: 27.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02845/2.205, allocations: 4.544 MB / 0.9228 GB, free: 27.29 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02701/2.232, allocations: 9.733 MB / 0.9323 GB, free: 26.1 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009088/2.233, allocations: 387.9 kB / 0.9326 GB, free: 26.1 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00577/2.238, allocations: 0.6871 MB / 0.9333 GB, free: 26.09 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03736/2.276, allocations: 14.16 MB / 0.9471 GB, free: 26.03 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06149/2.337, allocations: 16.48 MB / 0.9632 GB, free: 24.59 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008244/2.338, allocations: 16.92 kB / 0.9632 GB, free: 24.59 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005174/2.343, allocations: 6.938 kB / 0.9632 GB, free: 24.59 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001119/2.345, allocations: 0.8101 MB / 0.964 GB, free: 24.55 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1301/2.475, allocations: 59.77 MB / 1.022 GB, free: 11.56 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3776/2.852, allocations: 30.48 MB / 1.052 GB, free: 60.08 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00773/2.86, allocations: 4.114 MB / 1.056 GB, free: 60.03 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02147/2.882, allocations: 10.13 MB / 1.066 GB, free: 59.27 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.64e-05/2.882, allocations: 75.55 kB / 1.066 GB, free: 59.22 MB / 490.7 MB Notification: Performance of pre-optimization done (n=407): time 6.753e-06/2.882, allocations: 2.75 kB / 1.066 GB, free: 59.22 MB / 490.7 MB Notification: Performance of matching and sorting (n=417): time 0.04256/2.924, allocations: 17.49 MB / 1.083 GB, free: 55.84 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/2.924, allocations: 124.8 kB / 1.083 GB, free: 55.75 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01078/2.935, allocations: 3.89 MB / 1.087 GB, free: 55.42 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001088/2.936, allocations: 31.8 kB / 1.087 GB, free: 55.39 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004086/2.94, allocations: 5.348 MB / 1.092 GB, free: 52.56 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002443/2.943, allocations: 1.38 MB / 1.094 GB, free: 51.66 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00131/2.944, allocations: 0.5625 kB / 1.094 GB, free: 51.66 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007235/2.945, allocations: 0.5635 MB / 1.094 GB, free: 51.34 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004919/2.95, allocations: 2.818 MB / 1.097 GB, free: 51.33 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006434/2.956, allocations: 5.248 MB / 1.102 GB, free: 48.34 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008987/2.965, allocations: 4.938 MB / 1.107 GB, free: 48.27 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001256/2.966, allocations: 26.67 kB / 1.107 GB, free: 48.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.0249/2.991, allocations: 10.05 MB / 1.117 GB, free: 47.69 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002004/2.991, allocations: 39.58 kB / 1.117 GB, free: 47.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000222/2.991, allocations: 81.47 kB / 1.117 GB, free: 47.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003745/2.995, allocations: 1.116 MB / 1.118 GB, free: 47.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006902/3.002, allocations: 1.494 MB / 1.12 GB, free: 47.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01631/3.018, allocations: 12.03 MB / 1.131 GB, free: 42.53 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008147/3.026, allocations: 269.2 kB / 1.132 GB, free: 42.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001748/3.028, allocations: 320.5 kB / 1.132 GB, free: 42.52 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (765): * Single equations (assignments): 756 * 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%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001295/3.029, allocations: 327.7 kB / 1.132 GB, free: 42.35 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001675/3.031, allocations: 0.4985 MB / 1.133 GB, free: 42.09 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01517/3.046, allocations: 7.693 MB / 1.14 GB, free: 41.55 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007963/3.054, allocations: 4.892 MB / 1.145 GB, free: 41.35 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.452e-05/3.054, allocations: 10.47 kB / 1.145 GB, free: 41.35 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001017/3.054, allocations: 26.38 kB / 1.145 GB, free: 41.35 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03324/3.088, allocations: 16.01 MB / 1.161 GB, free: 34.79 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.769e-05/3.088, allocations: 3.438 kB / 1.161 GB, free: 34.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003334/3.091, allocations: 0.7278 MB / 1.161 GB, free: 34.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003312/3.094, allocations: 1.162 MB / 1.162 GB, free: 34.46 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008349/3.095, allocations: 48.25 kB / 1.162 GB, free: 34.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01524/3.111, allocations: 15.47 MB / 1.178 GB, free: 23.05 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/3.111, allocations: 11 kB / 1.178 GB, free: 23.05 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0217/3.132, allocations: 11.67 MB / 1.189 GB, free: 16.72 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004285/3.137, allocations: 1.129 MB / 1.19 GB, free: 15.69 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001832/3.139, allocations: 12 kB / 1.19 GB, free: 15.68 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004418/3.143, allocations: 193.8 kB / 1.19 GB, free: 15.56 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009218/3.144, allocations: 307.3 kB / 1.191 GB, free: 15.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000315/3.144, allocations: 119 kB / 1.191 GB, free: 15.27 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006083/3.15, allocations: 2.834 MB / 1.193 GB, free: 12.77 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.11e-07/3.15, allocations: 0 / 1.193 GB, free: 12.77 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01158/3.162, allocations: 1.807 MB / 1.195 GB, free: 10.98 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.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (355): * Single equations (assignments): 345 * 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,50.0%) 46,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001866/3.164, allocations: 0.6372 MB / 1.196 GB, free: 10.49 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01234/3.176, allocations: 7.496 MB / 1.203 GB, free: 3.82 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.43e-05/3.176, allocations: 4.312 kB / 1.203 GB, free: 3.816 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006759/3.183, allocations: 4.039 MB / 1.207 GB, free: 184 kB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01255/3.196, allocations: 1.312 MB / 1.208 GB, free: 0 / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04838/3.244, allocations: 17.32 MB / 1.225 GB, free: 0.5781 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.372/3.616, allocations: 7.749 MB / 1.233 GB, free: 65.02 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008412/3.625, allocations: 1.963 MB / 1.235 GB, free: 64.97 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002229/3.627, allocations: 381.3 kB / 1.235 GB, free: 64.97 MB / 0.4948 GB Notification: Performance of SimCode: time 1.663e-06/3.627, allocations: 2.312 kB / 1.235 GB, free: 64.97 MB / 0.4948 GB Notification: Performance of Templates: time 0.1357/3.763, allocations: 72.33 MB / 1.306 GB, free: 61.17 MB / 0.4948 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","../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