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.001361/0.001361, allocations: 113 kB / 17.68 MB, free: 5.355 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.001609/0.001609, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.447/1.447, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009881/0.0009882, allocations: 59.59 kB / 302.1 MB, free: 5.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0974/0.0984, allocations: 49.44 MB / 351.5 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.209/0.3074, allocations: 37.24 MB / 388.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02077/0.3282, allocations: 10.04 MB / 398.8 MB, free: 204 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0075/0.3358, allocations: 267.6 kB / 399.1 MB, free: 152 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02149/0.3573, allocations: 9.105 MB / 408.2 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01434/0.3717, allocations: 3.907 MB / 412.1 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007428/0.3791, allocations: 2.387 MB / 414.5 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01785/0.397, allocations: 14.09 MB / 428.5 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04253/0.4395, allocations: 25.61 MB / 454.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01139/0.451, allocations: 7.168 MB / 461.3 MB, free: 7.477 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01194/0.4629, allocations: 7.906 MB / 469.2 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005184/0.4681, allocations: 2.027 MB / 471.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00813/0.4763, allocations: 2.421 MB / 473.7 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007068/0.4834, allocations: 4.029 MB / 477.7 MB, free: 7.055 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01518/0.4986, allocations: 7.809 MB / 485.5 MB, free: 15.21 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03114/0.5298, allocations: 26.94 MB / 0.5004 GB, free: 4.199 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.5298, allocations: 0 / 0.5004 GB, free: 4.199 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5298, allocations: 0 / 0.5004 GB, free: 4.199 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007502/0.5306, allocations: 0 / 0.5004 GB, free: 4.199 MB / 414.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.05267/0.5833, allocations: 15.83 MB / 0.5159 GB, free: 4.246 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.5834, allocations: 8.031 kB / 0.5159 GB, free: 4.238 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4015/0.9848, allocations: 6.41 MB / 0.5222 GB, free: 118 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02281/1.008, allocations: 8.55 MB / 0.5305 GB, free: 114.4 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001062/1.009, allocations: 0.9046 MB / 0.5314 GB, free: 114 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005394/1.014, allocations: 1.188 MB / 0.5326 GB, free: 113.6 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04388/1.058, allocations: 18.77 MB / 0.5509 GB, free: 104.9 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004157/1.059, allocations: 23.39 kB / 0.5509 GB, free: 104.9 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002933/1.061, allocations: 0.4933 MB / 0.5514 GB, free: 104.5 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000552/1.062, allocations: 0.6482 MB / 0.552 GB, free: 104.4 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02936/1.091, allocations: 17.01 MB / 0.5686 GB, free: 88.88 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09173/1.183, allocations: 61.87 MB / 0.6291 GB, free: 25.83 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02353/1.207, allocations: 29.7 MB / 0.6581 GB, free: 8.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006722/1.214, allocations: 4.018 MB / 0.662 GB, free: 4.637 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01977/1.233, allocations: 10.08 MB / 0.6718 GB, free: 10.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.387e-05/1.233, allocations: 81.78 kB / 0.6719 GB, free: 10.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=402): time 5.37e-06/1.233, allocations: 0 / 0.6719 GB, free: 10.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=412): time 0.04394/1.277, allocations: 20.1 MB / 0.6915 GB, free: 6.059 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.762e-05/1.277, allocations: 120.4 kB / 0.6917 GB, free: 5.918 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008237/1.286, allocations: 5.157 MB / 0.6967 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007425/1.286, allocations: 97.64 kB / 0.6968 GB, free: 0.668 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1942/1.481, allocations: 5.352 MB / 0.702 GB, free: 148.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00175/1.482, allocations: 1.427 MB / 0.7034 GB, free: 147.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002237/1.485, allocations: 1.238 MB / 0.7046 GB, free: 147.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.699e-05/1.485, allocations: 303 kB / 0.7049 GB, free: 146.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005064/1.49, allocations: 2.851 MB / 0.7077 GB, free: 145.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006585/1.496, allocations: 5.346 MB / 0.7129 GB, free: 141.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01075/1.507, allocations: 8.729 MB / 0.7214 GB, free: 135.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001347/1.507, allocations: 28.03 kB / 0.7215 GB, free: 135.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.0163/1.524, allocations: 9.673 MB / 0.7309 GB, free: 131.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.527e-05/1.524, allocations: 50.41 kB / 0.731 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001346/1.524, allocations: 82.22 kB / 0.731 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002711/1.527, allocations: 1.117 MB / 0.7321 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005119/1.532, allocations: 1.45 MB / 0.7335 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01362/1.545, allocations: 13.47 MB / 0.7467 GB, free: 121.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00615/1.552, allocations: 349.4 kB / 0.747 GB, free: 121.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001462/1.553, allocations: 324.8 kB / 0.7473 GB, free: 121.1 MB / 478.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 (764): * Single equations (assignments): 758 * 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%), (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.009237/1.562, allocations: 4.233 MB / 0.7515 GB, free: 119 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001491/1.564, allocations: 0.5267 MB / 0.752 GB, free: 118.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01118/1.575, allocations: 7.08 MB / 0.7589 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005601/1.581, allocations: 4.23 MB / 0.763 GB, free: 111.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.969e-05/1.581, allocations: 12 kB / 0.763 GB, free: 111.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.713e-05/1.581, allocations: 21.42 kB / 0.7631 GB, free: 111.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03558/1.616, allocations: 16.96 MB / 0.7796 GB, free: 95.35 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.736e-05/1.616, allocations: 8 kB / 0.7796 GB, free: 95.34 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002996/1.619, allocations: 0.6788 MB / 0.7803 GB, free: 94.66 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002967/1.622, allocations: 1.181 MB / 0.7815 GB, free: 93.46 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005025/1.623, allocations: 103.9 kB / 0.7816 GB, free: 93.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01482/1.638, allocations: 17.39 MB / 0.7985 GB, free: 75.17 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/1.638, allocations: 14.53 kB / 0.7985 GB, free: 75.16 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01486/1.653, allocations: 10.27 MB / 0.8086 GB, free: 64.71 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003067/1.656, allocations: 1.115 MB / 0.8097 GB, free: 63.57 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001411/1.657, allocations: 80 kB / 0.8097 GB, free: 63.49 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00337/1.661, allocations: 215.8 kB / 0.8099 GB, free: 63.28 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000836/1.662, allocations: 313.6 kB / 0.8102 GB, free: 62.98 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004129/1.662, allocations: 124 kB / 0.8104 GB, free: 62.86 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0058/1.668, allocations: 3.461 MB / 0.8137 GB, free: 59.41 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.4e-07/1.668, allocations: 0 / 0.8137 GB, free: 59.41 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007413/1.675, allocations: 1.956 MB / 0.8157 GB, free: 57.46 MB / 478.1 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 (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%), (10,46,52.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.000855/1.676, allocations: 287.3 kB / 0.8159 GB, free: 57.18 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01116/1.687, allocations: 7.695 MB / 0.8234 GB, free: 49.41 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/1.687, allocations: 8.062 kB / 0.8234 GB, free: 49.41 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005932/1.693, allocations: 4.092 MB / 0.8274 GB, free: 45.24 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007447/1.701, allocations: 1.439 MB / 0.8288 GB, free: 43.85 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03461/1.735, allocations: 20.29 MB / 0.8487 GB, free: 23.48 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01217/1.748, allocations: 7.368 MB / 0.8559 GB, free: 16.07 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006953/1.755, allocations: 2.001 MB / 0.8578 GB, free: 14.07 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001925/1.756, allocations: 403.4 kB / 0.8582 GB, free: 13.67 MB / 478.1 MB Notification: Performance of SimCode: time 1.412e-06/1.756, allocations: 0 / 0.8582 GB, free: 13.67 MB / 478.1 MB Notification: Performance of Templates: time 0.3405/2.097, allocations: 77.76 MB / 0.9341 GB, free: 99.98 MB / 478.1 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 -s gbode -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/jenkins1/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/jenkins1/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