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.000816/0.000816, allocations: 99.58 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009742/0.0009741, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.7 MB / 246.4 MB, free: 9.797 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002369/0.000237, allocations: 4 kB / 307.1 MB, free: 0.9102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09531/0.09557, allocations: 51.52 MB / 358.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2137/0.3093, allocations: 33.18 MB / 391.8 MB, free: 2.547 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02181/0.3312, allocations: 9.541 MB / 401.4 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00875/0.34, allocations: 252.4 kB / 401.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007465/0.3474, allocations: 1.85 MB / 403.5 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01344/0.3609, allocations: 3.229 MB / 406.7 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006512/0.3674, allocations: 1.531 MB / 408.2 MB, free: 7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02158/0.389, allocations: 15.65 MB / 423.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04381/0.4329, allocations: 20.39 MB / 444.3 MB, free: 6.324 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01044/0.4434, allocations: 5.193 MB / 449.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0109/0.4543, allocations: 5.872 MB / 455.3 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004572/0.4589, allocations: 0.793 MB / 456.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007044/0.466, allocations: 1.179 MB / 457.3 MB, free: 9.246 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005177/0.4712, allocations: 2.511 MB / 459.8 MB, free: 6.727 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007104/0.4783, allocations: 2.636 MB / 462.5 MB, free: 4.078 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02673/0.5051, allocations: 22.68 MB / 485.1 MB, free: 13.33 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.5051, allocations: 4 kB / 485.1 MB, free: 13.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.098e-06/0.5051, allocations: 0 / 485.1 MB, free: 13.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007603/0.5059, allocations: 0 / 485.1 MB, free: 13.33 MB / 398.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.04067/0.5466, allocations: 13.42 MB / 498.6 MB, free: 15.79 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.5467, allocations: 12.03 kB / 498.6 MB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03624/0.5829, allocations: 6.438 MB / 0.4932 GB, free: 9.32 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02003/0.603, allocations: 8.213 MB / 0.5012 GB, free: 1.031 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001176/0.6042, allocations: 0.9032 MB / 0.5021 GB, free: 128 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00461/0.6088, allocations: 1.195 MB / 0.5033 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0506/0.6595, allocations: 18.69 MB / 0.5215 GB, free: 12.13 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000552/0.66, allocations: 23.73 kB / 0.5215 GB, free: 12.11 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003131/0.6632, allocations: 0.496 MB / 0.522 GB, free: 11.61 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007025/0.6639, allocations: 0.6498 MB / 0.5226 GB, free: 10.96 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2111/0.875, allocations: 16.93 MB / 0.5392 GB, free: 122.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08078/0.9558, allocations: 64.1 MB / 0.6018 GB, free: 78.69 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0194/0.9753, allocations: 30 MB / 0.6311 GB, free: 45.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005271/0.9806, allocations: 4.105 MB / 0.6351 GB, free: 41.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01409/0.9947, allocations: 10.49 MB / 0.6453 GB, free: 30.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.9947, allocations: 81.75 kB / 0.6454 GB, free: 30.81 MB / 446.1 MB Notification: Performance of pre-optimization done (n=408): time 5.361e-06/0.9948, allocations: 3.938 kB / 0.6454 GB, free: 30.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=418): time 0.04509/1.04, allocations: 21.72 MB / 0.6666 GB, free: 8.742 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/1.04, allocations: 124.3 kB / 0.6667 GB, free: 8.598 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008403/1.048, allocations: 5.143 MB / 0.6718 GB, free: 3.465 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004615/1.049, allocations: 93.7 kB / 0.6719 GB, free: 3.367 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002959/1.052, allocations: 5.357 MB / 0.6771 GB, free: 13.97 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001513/1.053, allocations: 1.445 MB / 0.6785 GB, free: 12.54 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006054/1.054, allocations: 132 kB / 0.6786 GB, free: 12.41 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004893/1.054, allocations: 0.563 MB / 0.6792 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004877/1.059, allocations: 2.866 MB / 0.682 GB, free: 8.969 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006559/1.066, allocations: 5.373 MB / 0.6872 GB, free: 2.441 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006981/1.073, allocations: 4.047 MB / 0.6912 GB, free: 14.38 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-05/1.073, allocations: 24 kB / 0.6912 GB, free: 14.35 MB / 478.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.01969/1.093, allocations: 9.726 MB / 0.7007 GB, free: 4.547 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000119/1.093, allocations: 40 kB / 0.7007 GB, free: 4.508 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001552/1.093, allocations: 84.66 kB / 0.7008 GB, free: 4.426 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003163/1.096, allocations: 1.14 MB / 0.7019 GB, free: 3.273 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005874/1.102, allocations: 1.443 MB / 0.7033 GB, free: 1.828 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01582/1.118, allocations: 12.51 MB / 0.7156 GB, free: 4.801 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004924/1.123, allocations: 359.6 kB / 0.7159 GB, free: 4.449 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001089/1.124, allocations: 320 kB / 0.7162 GB, free: 4.137 MB / 494.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 (767): * Single equations (assignments): 758 * 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%) 1,(1,100.0%) 5,(1,100.0%) 1,(10,48.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.1986/1.323, allocations: 4.238 MB / 0.7203 GB, free: 156.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001458/1.324, allocations: 0.5312 MB / 0.7209 GB, free: 156.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01432/1.339, allocations: 7.171 MB / 0.7279 GB, free: 156.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006628/1.345, allocations: 4.289 MB / 0.7321 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.114e-05/1.345, allocations: 14.72 kB / 0.7321 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.549e-05/1.345, allocations: 24.16 kB / 0.7321 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02784/1.373, allocations: 17.09 MB / 0.7488 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.918e-05/1.373, allocations: 6.406 kB / 0.7488 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002775/1.376, allocations: 0.6874 MB / 0.7495 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002957/1.379, allocations: 1.181 MB / 0.7506 GB, free: 147.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004669/1.379, allocations: 98.72 kB / 0.7507 GB, free: 147.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01463/1.394, allocations: 16.02 MB / 0.7664 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/1.394, allocations: 9.281 kB / 0.7664 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01481/1.409, allocations: 10.39 MB / 0.7765 GB, free: 129.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002651/1.412, allocations: 1.143 MB / 0.7776 GB, free: 128.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000673/1.412, allocations: 83.8 kB / 0.7777 GB, free: 128.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002157/1.415, allocations: 219.6 kB / 0.7779 GB, free: 128.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00054/1.415, allocations: 303.3 kB / 0.7782 GB, free: 128.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002453/1.415, allocations: 123.5 kB / 0.7783 GB, free: 128.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004402/1.42, allocations: 3.441 MB / 0.7817 GB, free: 125.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.11e-07/1.42, allocations: 6.469 kB / 0.7817 GB, free: 125.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006516/1.426, allocations: 1.969 MB / 0.7836 GB, free: 123.3 MB / 494.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 (356): * Single equations (assignments): 346 * 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,48.0%) 46,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007333/1.427, allocations: 294.3 kB / 0.7839 GB, free: 123 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01041/1.437, allocations: 7.752 MB / 0.7915 GB, free: 116.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/1.437, allocations: 8.188 kB / 0.7915 GB, free: 116.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00589/1.443, allocations: 4.137 MB / 0.7955 GB, free: 112.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00718/1.451, allocations: 1.384 MB / 0.7969 GB, free: 111.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03023/1.481, allocations: 24.71 MB / 0.821 GB, free: 86.61 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00594/1.487, allocations: 7.385 MB / 0.8282 GB, free: 79.19 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005603/1.492, allocations: 1.998 MB / 0.8301 GB, free: 77.18 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/1.493, allocations: 403.4 kB / 0.8305 GB, free: 76.79 MB / 494.1 MB Notification: Performance of SimCode: time 5.41e-07/1.493, allocations: 0 / 0.8305 GB, free: 76.79 MB / 494.1 MB Notification: Performance of Templates: time 0.2896/1.783, allocations: 79.77 MB / 0.9084 GB, free: 143.5 MB / 494.1 MB 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/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","/var/lib/jenkins/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