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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001413/0.001413, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008743/0.0008744, allocations: 97.8 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.709e-05/1.721e-05, allocations: 8 kB / 343.7 MB, free: 8.234 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 51.47 MB / 395.2 MB, free: 4.723 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4452/0.5534, allocations: 159.2 MB / 0.5414 GB, free: 15.12 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.5537, allocations: 102.1 kB / 0.5415 GB, free: 15.07 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.628/2.182, allocations: 401.2 MB / 0.9333 GB, free: 28.59 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.923e-06/2.182, allocations: 0 / 0.9333 GB, free: 28.59 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000812/2.183, allocations: 282.5 kB / 0.9336 GB, free: 28.56 MB / 474.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.0381/2.221, allocations: 11.19 MB / 0.9445 GB, free: 25.09 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/2.221, allocations: 9.844 kB / 0.9445 GB, free: 25.09 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0286/2.25, allocations: 4.585 MB / 0.949 GB, free: 24.41 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02803/2.278, allocations: 9.758 MB / 0.9585 GB, free: 23.21 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009751/2.279, allocations: 387.7 kB / 0.9589 GB, free: 23.21 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005591/2.284, allocations: 0.6885 MB / 0.9595 GB, free: 23.2 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03697/2.321, allocations: 14.16 MB / 0.9734 GB, free: 23.14 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06357/2.385, allocations: 16.48 MB / 0.9895 GB, free: 21.72 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007976/2.386, allocations: 25.31 kB / 0.9895 GB, free: 21.71 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005465/2.391, allocations: 10.16 kB / 0.9895 GB, free: 21.71 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001193/2.392, allocations: 0.7965 MB / 0.9903 GB, free: 21.68 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1285/2.521, allocations: 61.11 MB / 1.05 GB, free: 14.41 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03429/2.555, allocations: 30.73 MB / 1.08 GB, free: 3.648 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008553/2.564, allocations: 4.149 MB / 1.084 GB, free: 2.062 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02202/2.586, allocations: 10.45 MB / 1.094 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.427e-05/2.586, allocations: 88.53 kB / 1.094 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=407): time 7.675e-06/2.586, allocations: 0 / 1.094 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=417): time 0.4389/3.025, allocations: 18.8 MB / 1.113 GB, free: 72.23 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/3.025, allocations: 120.8 kB / 1.113 GB, free: 72.13 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01038/3.035, allocations: 3.903 MB / 1.117 GB, free: 71.87 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001053/3.036, allocations: 25.7 kB / 1.117 GB, free: 71.84 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003557/3.04, allocations: 5.358 MB / 1.122 GB, free: 70.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001994/3.042, allocations: 1.378 MB / 1.123 GB, free: 69.61 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000498/3.043, allocations: 0 / 1.123 GB, free: 69.61 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003595/3.043, allocations: 0.5593 MB / 1.124 GB, free: 69.29 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004082/3.047, allocations: 2.822 MB / 1.127 GB, free: 69.27 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005815/3.053, allocations: 5.249 MB / 1.132 GB, free: 66.29 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01312/3.066, allocations: 5.457 MB / 1.137 GB, free: 66.23 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001378/3.066, allocations: 23.91 kB / 1.137 GB, free: 66.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02764/3.094, allocations: 10.56 MB / 1.147 GB, free: 65.67 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.72e-05/3.094, allocations: 45.59 kB / 1.147 GB, free: 65.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001799/3.094, allocations: 83.14 kB / 1.147 GB, free: 65.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003016/3.097, allocations: 1.117 MB / 1.149 GB, free: 65.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006625/3.104, allocations: 1.487 MB / 1.15 GB, free: 65.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01504/3.119, allocations: 12.04 MB / 1.162 GB, free: 60.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006613/3.126, allocations: 266.9 kB / 1.162 GB, free: 60.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001667/3.127, allocations: 323.7 kB / 1.162 GB, free: 60.49 MB / 0.5105 GB 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.002707/3.13, allocations: 328 kB / 1.163 GB, free: 60.34 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001688/3.132, allocations: 0.498 MB / 1.163 GB, free: 60.07 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01877/3.15, allocations: 8.088 MB / 1.171 GB, free: 59.54 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01006/3.161, allocations: 5.189 MB / 1.176 GB, free: 59.37 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-05/3.161, allocations: 18.19 kB / 1.176 GB, free: 59.37 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.496e-05/3.161, allocations: 24.47 kB / 1.176 GB, free: 59.37 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03875/3.199, allocations: 16.4 MB / 1.192 GB, free: 58.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.927e-05/3.2, allocations: 3.969 kB / 1.192 GB, free: 58.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003587/3.203, allocations: 0.7267 MB / 1.193 GB, free: 58.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003319/3.206, allocations: 1.177 MB / 1.194 GB, free: 58.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007311/3.207, allocations: 38.45 kB / 1.194 GB, free: 58.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01611/3.223, allocations: 15.48 MB / 1.209 GB, free: 50.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/3.223, allocations: 8.688 kB / 1.209 GB, free: 50.54 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02098/3.244, allocations: 12.06 MB / 1.221 GB, free: 47.13 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003167/3.248, allocations: 1.127 MB / 1.222 GB, free: 46.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001137/3.249, allocations: 20.7 kB / 1.222 GB, free: 46.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002849/3.252, allocations: 190.6 kB / 1.222 GB, free: 46.42 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000659/3.252, allocations: 308.1 kB / 1.223 GB, free: 46.37 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002713/3.253, allocations: 119.1 kB / 1.223 GB, free: 46.34 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00457/3.257, allocations: 2.846 MB / 1.225 GB, free: 45.19 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.6e-07/3.257, allocations: 0 / 1.225 GB, free: 45.19 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009041/3.266, allocations: 1.817 MB / 1.227 GB, free: 45.16 MB / 0.5105 GB 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.001413/3.268, allocations: 0.6351 MB / 1.228 GB, free: 44.95 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01145/3.279, allocations: 7.477 MB / 1.235 GB, free: 41.85 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/3.279, allocations: 5.25 kB / 1.235 GB, free: 41.85 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007242/3.286, allocations: 4.033 MB / 1.239 GB, free: 39.88 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008162/3.295, allocations: 1.074 MB / 1.24 GB, free: 39.61 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05226/3.347, allocations: 17.46 MB / 1.257 GB, free: 29.65 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01018/3.357, allocations: 7.575 MB / 1.265 GB, free: 24 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007139/3.364, allocations: 1.973 MB / 1.266 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001321/3.366, allocations: 384.6 kB / 1.267 GB, free: 22.34 MB / 0.5105 GB Notification: Performance of SimCode: time 8.41e-07/3.366, allocations: 0 / 1.267 GB, free: 22.34 MB / 0.5105 GB Notification: Performance of Templates: time 0.5369/3.903, allocations: 73.21 MB / 1.338 GB, free: 59.75 MB / 0.5105 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/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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches