Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001024/0.001024, allocations: 177.3 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.56/1.56, allocations: 205.4 MB / 223.6 MB, free: 9.039 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009567/0.0009568, allocations: 89.42 kB / 271.9 MB, free: 8.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003108/0.0003108, allocations: 8 kB / 328.2 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2823, allocations: 47.57 MB / 375.7 MB, free: 45.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3965/0.6789, allocations: 159.2 MB / 0.5224 GB, free: 97.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003001/0.6793, allocations: 108 kB / 0.5225 GB, free: 97.49 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.381/2.06, allocations: 386 MB / 0.8994 GB, free: 43.19 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.618e-06/2.06, allocations: 0.5625 kB / 0.8994 GB, free: 43.19 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.00105/2.061, allocations: 282.4 kB / 0.8997 GB, free: 43.16 MB / 442.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.0472/2.108, allocations: 11.83 MB / 0.9113 GB, free: 39.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.804e-05/2.108, allocations: 7.125 kB / 0.9113 GB, free: 39.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03121/2.14, allocations: 5.233 MB / 0.9164 GB, free: 38.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02907/2.169, allocations: 9.041 MB / 0.9252 GB, free: 36.06 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001771/2.171, allocations: 0.9019 MB / 0.9261 GB, free: 35.66 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007844/2.178, allocations: 1.18 MB / 0.9272 GB, free: 35.27 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06528/2.244, allocations: 19.67 MB / 0.9464 GB, free: 19.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008596/2.245, allocations: 23.5 kB / 0.9465 GB, free: 19.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006206/2.251, allocations: 0.5035 MB / 0.947 GB, free: 19.42 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001009/2.252, allocations: 0.7711 MB / 0.9477 GB, free: 18.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04755/2.3, allocations: 17.4 MB / 0.9647 GB, free: 3.543 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5049/2.805, allocations: 63.38 MB / 1.027 GB, free: 40.62 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02595/2.831, allocations: 22.43 MB / 1.049 GB, free: 29.13 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01365/2.844, allocations: 7.415 MB / 1.056 GB, free: 29.03 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05321/2.897, allocations: 22.85 MB / 1.078 GB, free: 19.93 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001188/2.898, allocations: 103.8 kB / 1.078 GB, free: 19.84 MB / 458.7 MB Notification: Performance of pre-optimization done (n=749): time 1.802e-05/2.898, allocations: 0 / 1.078 GB, free: 19.84 MB / 458.7 MB Notification: Performance of matching and sorting (n=759): time 0.09146/2.989, allocations: 36.35 MB / 1.114 GB, free: 3.469 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/2.989, allocations: 145.3 kB / 1.114 GB, free: 3.367 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01103/3, allocations: 4.402 MB / 1.118 GB, free: 1.727 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00193/3.002, allocations: 131.5 kB / 1.118 GB, free: 1.613 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004006/3.006, allocations: 4.76 MB / 1.123 GB, free: 14.04 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004629/3.011, allocations: 2.522 MB / 1.125 GB, free: 12.08 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002023/3.013, allocations: 146.9 kB / 1.125 GB, free: 11.96 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001136/3.014, allocations: 0.6343 MB / 1.126 GB, free: 11.52 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01008/3.024, allocations: 4.825 MB / 1.131 GB, free: 9.332 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01307/3.037, allocations: 6.71 MB / 1.137 GB, free: 2.684 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02543/3.063, allocations: 12.21 MB / 1.149 GB, free: 6.984 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.978e-05/3.063, allocations: 14.53 kB / 1.149 GB, free: 6.973 MB / 490.7 MB Notification: Performance of matching and sorting (n=1045) (initialization): time 0.03685/3.1, allocations: 14.44 MB / 1.163 GB, free: 10.36 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.000113/3.1, allocations: 28.84 kB / 1.163 GB, free: 10.33 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000162/3.1, allocations: 52 kB / 1.163 GB, free: 10.28 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008007/3.108, allocations: 3.387 MB / 1.167 GB, free: 7.492 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007111/3.116, allocations: 1.477 MB / 1.168 GB, free: 6.254 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3515/3.467, allocations: 13.91 MB / 1.182 GB, free: 97.02 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006505/3.474, allocations: 397.1 kB / 1.182 GB, free: 97.02 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001829/3.475, allocations: 338.5 kB / 1.183 GB, free: 97.02 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * 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 (788): * Single equations (assignments): 723 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 3 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.01034/3.486, allocations: 4.264 MB / 1.187 GB, free: 96.91 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001828/3.488, allocations: 0.5909 MB / 1.187 GB, free: 96.9 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0225/3.51, allocations: 13.63 MB / 1.201 GB, free: 96.3 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01843/3.529, allocations: 10.41 MB / 1.211 GB, free: 96.01 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.614e-05/3.529, allocations: 10.12 kB / 1.211 GB, free: 96.01 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001435/3.529, allocations: 33.7 kB / 1.211 GB, free: 96.01 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05363/3.583, allocations: 28.15 MB / 1.238 GB, free: 89.46 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.512e-05/3.583, allocations: 5.875 kB / 1.238 GB, free: 89.46 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004331/3.587, allocations: 0.9507 MB / 1.239 GB, free: 89.43 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006565/3.594, allocations: 3.473 MB / 1.243 GB, free: 88.36 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001241/3.595, allocations: 170.2 kB / 1.243 GB, free: 88.26 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01392/3.609, allocations: 18.28 MB / 1.261 GB, free: 74.64 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/3.609, allocations: 7.062 kB / 1.261 GB, free: 74.64 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02689/3.636, allocations: 20.43 MB / 1.281 GB, free: 65.44 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003325/3.639, allocations: 1.734 MB / 1.282 GB, free: 64.66 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001361/3.64, allocations: 124.7 kB / 1.282 GB, free: 64.57 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003668/3.644, allocations: 310 kB / 1.283 GB, free: 64.48 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001337/3.645, allocations: 0.5572 MB / 1.283 GB, free: 64.37 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006979/3.646, allocations: 204.6 kB / 1.283 GB, free: 64.32 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.004988/3.651, allocations: 2.948 MB / 1.286 GB, free: 63.22 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.4e-07/3.651, allocations: 3.25 kB / 1.286 GB, free: 63.22 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.006745/3.658, allocations: 2.151 MB / 1.288 GB, free: 62.99 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (507): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 6 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.001324/3.659, allocations: 0.7428 MB / 1.289 GB, free: 62.75 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01564/3.675, allocations: 12.19 MB / 1.301 GB, free: 54.07 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/3.675, allocations: 1.656 kB / 1.301 GB, free: 54.07 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.009104/3.684, allocations: 6.676 MB / 1.308 GB, free: 48.2 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01088/3.695, allocations: 1.396 MB / 1.309 GB, free: 47.14 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03911/3.734, allocations: 28.42 MB / 1.337 GB, free: 21.13 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01003/3.744, allocations: 7.335 MB / 1.344 GB, free: 15.46 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003174/3.747, allocations: 480.1 kB / 1.344 GB, free: 15.02 MB / 0.4949 GB Notification: Performance of SimCode: time 1.553e-06/3.747, allocations: 0 / 1.344 GB, free: 15.02 MB / 0.4949 GB Notification: Performance of Templates: time 2.264/6.011, allocations: 0.9211 GB / 2.265 GB, free: 32.39 MB / 0.5261 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins1/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","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches