Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001584/0.001584, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001601/0.001601, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 247.5 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001825/0.001826, allocations: 55.44 kB / 307.7 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1044, allocations: 50.54 MB / 358.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2082/0.3126, allocations: 37.9 MB / 396.1 MB, free: 15.03 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02839/0.3411, allocations: 10.29 MB / 406.4 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01012/0.3512, allocations: 275.5 kB / 406.7 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02505/0.3763, allocations: 9.12 MB / 415.8 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01845/0.3948, allocations: 3.919 MB / 419.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009555/0.4044, allocations: 2.43 MB / 422.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02432/0.4287, allocations: 14.12 MB / 436.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04857/0.4773, allocations: 25.8 MB / 462 MB, free: 4.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01526/0.4927, allocations: 7.172 MB / 469.2 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01637/0.5091, allocations: 8.066 MB / 477.3 MB, free: 4.734 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007107/0.5162, allocations: 2.027 MB / 479.3 MB, free: 2.707 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01055/0.5268, allocations: 2.449 MB / 481.8 MB, free: 264 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008736/0.5356, allocations: 4.037 MB / 485.8 MB, free: 12.21 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02029/0.5559, allocations: 7.836 MB / 493.6 MB, free: 4.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04067/0.5967, allocations: 26.82 MB / 0.5083 GB, free: 9.445 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.109e-05/0.5967, allocations: 4 kB / 0.5083 GB, free: 9.441 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5967, allocations: 0 / 0.5083 GB, free: 9.441 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0008135/0.5976, allocations: 0 / 0.5083 GB, free: 9.441 MB / 430.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.05872/0.6563, allocations: 15.94 MB / 0.5238 GB, free: 9.379 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.6564, allocations: 12.03 kB / 0.5238 GB, free: 9.367 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03902/0.6954, allocations: 6.318 MB / 0.53 GB, free: 3.027 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2095/0.905, allocations: 8.366 MB / 0.5382 GB, free: 127.1 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00132/0.9064, allocations: 0.9055 MB / 0.5391 GB, free: 126.7 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004745/0.9111, allocations: 1.198 MB / 0.5402 GB, free: 126.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04894/0.9601, allocations: 18.81 MB / 0.5586 GB, free: 118.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006598/0.9608, allocations: 20.45 kB / 0.5586 GB, free: 118.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004105/0.9649, allocations: 0.4916 MB / 0.5591 GB, free: 118.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008798/0.9658, allocations: 0.6464 MB / 0.5597 GB, free: 118.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03502/1.001, allocations: 17.04 MB / 0.5764 GB, free: 106.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09929/1.1, allocations: 63.92 MB / 0.6388 GB, free: 41.57 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02352/1.124, allocations: 30.03 MB / 0.6681 GB, free: 8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006418/1.13, allocations: 4.05 MB / 0.6721 GB, free: 3.945 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02244/1.153, allocations: 10.46 MB / 0.6823 GB, free: 9.461 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.894e-05/1.153, allocations: 85.73 kB / 0.6824 GB, free: 9.367 MB / 462.1 MB Notification: Performance of pre-optimization done (n=402): time 1.015e-05/1.153, allocations: 3.984 kB / 0.6824 GB, free: 9.363 MB / 462.1 MB Notification: Performance of matching and sorting (n=412): time 0.05528/1.208, allocations: 20.17 MB / 0.7021 GB, free: 4.871 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/1.208, allocations: 124.4 kB / 0.7022 GB, free: 4.727 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2185/1.427, allocations: 5.184 MB / 0.7073 GB, free: 144.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008676/1.428, allocations: 92.86 kB / 0.7073 GB, free: 144.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004475/1.432, allocations: 5.364 MB / 0.7126 GB, free: 142.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001696/1.434, allocations: 1.425 MB / 0.714 GB, free: 141.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002246/1.436, allocations: 1.26 MB / 0.7152 GB, free: 140.9 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.929e-05/1.436, allocations: 302.5 kB / 0.7155 GB, free: 140.6 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004397/1.441, allocations: 2.854 MB / 0.7183 GB, free: 139.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005681/1.446, allocations: 5.355 MB / 0.7235 GB, free: 135.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01154/1.458, allocations: 8.752 MB / 0.7321 GB, free: 129.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001456/1.458, allocations: 23.16 kB / 0.7321 GB, free: 129.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.0173/1.475, allocations: 9.713 MB / 0.7416 GB, free: 125 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.286e-05/1.476, allocations: 39.09 kB / 0.7416 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001447/1.476, allocations: 84.34 kB / 0.7417 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002791/1.478, allocations: 1.122 MB / 0.7428 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005034/1.484, allocations: 1.459 MB / 0.7442 GB, free: 124.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01353/1.497, allocations: 13.49 MB / 0.7574 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005485/1.503, allocations: 357.3 kB / 0.7577 GB, free: 114.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001082/1.504, allocations: 325.9 kB / 0.758 GB, free: 114.9 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.007006/1.511, allocations: 4.233 MB / 0.7622 GB, free: 112.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0015/1.512, allocations: 0.5293 MB / 0.7627 GB, free: 112.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01168/1.524, allocations: 7.095 MB / 0.7696 GB, free: 109.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006086/1.53, allocations: 4.249 MB / 0.7738 GB, free: 106.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.423e-05/1.53, allocations: 12 kB / 0.7738 GB, free: 106.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.035e-05/1.53, allocations: 22.83 kB / 0.7738 GB, free: 106.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02871/1.559, allocations: 17.04 MB / 0.7904 GB, free: 91.36 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.018e-05/1.559, allocations: 4 kB / 0.7904 GB, free: 91.35 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002898/1.562, allocations: 0.687 MB / 0.7911 GB, free: 90.66 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002981/1.565, allocations: 1.204 MB / 0.7923 GB, free: 89.44 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006053/1.565, allocations: 103.9 kB / 0.7924 GB, free: 89.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01545/1.581, allocations: 17.4 MB / 0.8094 GB, free: 71.13 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/1.581, allocations: 11.94 kB / 0.8094 GB, free: 71.12 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01414/1.595, allocations: 10.3 MB / 0.8194 GB, free: 60.65 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002809/1.598, allocations: 1.115 MB / 0.8205 GB, free: 59.51 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001426/1.599, allocations: 84 kB / 0.8206 GB, free: 59.43 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003274/1.603, allocations: 215.8 kB / 0.8208 GB, free: 59.21 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007939/1.604, allocations: 315.3 kB / 0.8211 GB, free: 58.91 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002964/1.604, allocations: 124 kB / 0.8212 GB, free: 58.79 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005592/1.609, allocations: 3.481 MB / 0.8246 GB, free: 55.32 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.81e-07/1.61, allocations: 0 / 0.8246 GB, free: 55.32 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008029/1.618, allocations: 1.964 MB / 0.8265 GB, free: 53.36 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.001049/1.619, allocations: 277.6 kB / 0.8268 GB, free: 53.09 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02231/1.641, allocations: 10.85 MB / 0.8374 GB, free: 42.19 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/1.641, allocations: 0 / 0.8374 GB, free: 42.19 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00696/1.648, allocations: 4.107 MB / 0.8414 GB, free: 38 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009302/1.657, allocations: 1.445 MB / 0.8428 GB, free: 36.61 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03975/1.697, allocations: 20.19 MB / 0.8625 GB, free: 16.34 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01134/1.708, allocations: 7.14 MB / 0.8695 GB, free: 9.16 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002542/1.711, allocations: 491.3 kB / 0.87 GB, free: 8.68 MB / 478.1 MB Notification: Performance of SimCode: time 1.363e-06/1.711, allocations: 2.844 kB / 0.87 GB, free: 8.68 MB / 478.1 MB Notification: Performance of Templates: time 1.165/2.877, allocations: 0.4951 GB / 1.365 GB, free: 74.84 MB / 0.4981 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches