Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009608/0.0009609, allocations: 95.11 kB / 16.98 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.0009761/0.0009762, allocations: 198.7 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002296/0.0002298, allocations: 7.984 kB / 306.6 MB, free: 1.41 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1026, allocations: 51.49 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01414/0.1168, allocations: 13.37 MB / 371.4 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1964/0.3132, allocations: 5.306 MB / 376.8 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003154/0.3164, allocations: 95.88 kB / 376.8 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003688/0.3201, allocations: 0.9705 MB / 377.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006307/0.3265, allocations: 1.431 MB / 379.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002905/0.3294, allocations: 0.7455 MB / 380 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006085/0.3355, allocations: 2.748 MB / 382.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003842/0.3394, allocations: 2.582 MB / 385.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002744/0.3421, allocations: 1.274 MB / 386.6 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002828/0.345, allocations: 1.594 MB / 388.2 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004658/0.3454, allocations: 203 kB / 388.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001547/0.347, allocations: 410.9 kB / 388.8 MB, free: 7.758 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008404/0.3478, allocations: 0.8601 MB / 389.7 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001077/0.3489, allocations: 0.764 MB / 390.4 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004632/0.3536, allocations: 5.557 MB / 396 MB, free: 3.059 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.3536, allocations: 0 / 396 MB, free: 3.059 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3536, allocations: 0 / 396 MB, free: 3.059 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001325/0.3537, allocations: 3.781 kB / 396 MB, free: 3.059 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.008811/0.3625, allocations: 3.974 MB / 400 MB, free: 476 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.3626, allocations: 10.56 kB / 400 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003535/0.3661, allocations: 0.6883 MB / 400.7 MB, free: 124 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004879/0.371, allocations: 2.405 MB / 403.1 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/0.3713, allocations: 265.3 kB / 403.3 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006029/0.3719, allocations: 348.6 kB / 403.7 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007824/0.3797, allocations: 4.408 MB / 408.1 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.62e-05/0.3798, allocations: 7.984 kB / 408.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003586/0.3801, allocations: 140 kB / 408.2 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002018/0.3804, allocations: 166.7 kB / 408.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006592/0.387, allocations: 3.731 MB / 412.1 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02342/0.4104, allocations: 14.64 MB / 426.7 MB, free: 7.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005462/0.4159, allocations: 5.611 MB / 432.4 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006061/0.422, allocations: 3.347 MB / 435.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.48e-05/0.4221, allocations: 43.88 kB / 435.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=136): time 4.128e-06/0.4221, allocations: 0 / 435.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=141): time 0.01101/0.4331, allocations: 5.661 MB / 441.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.4331, allocations: 68.72 kB / 441.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003225/0.4364, allocations: 2.019 MB / 443.5 MB, free: 5.457 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.4365, allocations: 53.7 kB / 443.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001141/0.4377, allocations: 1.653 MB / 445.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000404/0.4381, allocations: 492.8 kB / 445.7 MB, free: 3.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.4382, allocations: 40 kB / 445.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.4383, allocations: 377.9 kB / 446.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.4395, allocations: 0.7379 MB / 446.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00169/0.4412, allocations: 1.35 MB / 448.2 MB, free: 472 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001484/0.4427, allocations: 0.9823 MB / 449.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/0.4427, allocations: 4 kB / 449.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=240) (initialization): time 0.004049/0.4468, allocations: 2.561 MB / 451.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.4468, allocations: 12 kB / 451.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.08e-05/0.4469, allocations: 20 kB / 451.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003719/0.4473, allocations: 146.5 kB / 451.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00173/0.449, allocations: 479.3 kB / 452.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002533/0.4515, allocations: 3.122 MB / 455.5 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001604/0.4532, allocations: 119.7 kB / 455.6 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001623/0.4533, allocations: 87.98 kB / 455.7 MB, free: 8.637 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * 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 (233): * Single equations (assignments): 230 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001908/0.4552, allocations: 1.044 MB / 456.7 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004417/0.4557, allocations: 217.3 kB / 456.9 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003746/0.4595, allocations: 2.271 MB / 459.2 MB, free: 5.035 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.316e-05/0.4595, allocations: 16 kB / 459.2 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/0.4595, allocations: 4.125 kB / 459.2 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.4595, allocations: 15.97 kB / 459.3 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009109/0.4686, allocations: 5.346 MB / 464.6 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.4687, allocations: 0 / 464.6 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.4698, allocations: 247.6 kB / 464.8 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006516/0.4704, allocations: 271.5 kB / 465.1 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.4705, allocations: 35.98 kB / 465.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006299/0.4769, allocations: 7.155 MB / 472.3 MB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.4769, allocations: 4.656 kB / 472.3 MB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004847/0.4817, allocations: 3.496 MB / 475.8 MB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/0.4829, allocations: 462.3 kB / 476.2 MB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005228/0.4834, allocations: 28 kB / 476.3 MB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/0.4846, allocations: 76.3 kB / 476.3 MB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.4848, allocations: 101.1 kB / 476.4 MB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.044e-05/0.4849, allocations: 47.98 kB / 476.5 MB, free: 2.844 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002382/0.4873, allocations: 1.356 MB / 477.8 MB, free: 1.469 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4873, allocations: 7.938 kB / 477.9 MB, free: 1.461 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00238/0.4897, allocations: 0.5742 MB / 478.4 MB, free: 0.8867 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003765/0.4901, allocations: 189.7 kB / 478.6 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003305/0.4934, allocations: 2.155 MB / 480.8 MB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.4934, allocations: 0 / 480.8 MB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00202/0.4954, allocations: 1.417 MB / 482.2 MB, free: 13.03 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002647/0.4981, allocations: 0.5168 MB / 482.7 MB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01212/0.5102, allocations: 7.423 MB / 490.1 MB, free: 5.027 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002812/0.5131, allocations: 2.492 MB / 492.6 MB, free: 2.504 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001907/0.515, allocations: 498.6 kB / 493.1 MB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000534/0.5156, allocations: 159.4 kB / 493.3 MB, free: 1.863 MB / 398.1 MB Notification: Performance of SimCode: time 1.132e-06/0.5156, allocations: 0 / 493.3 MB, free: 1.863 MB / 398.1 MB Notification: Performance of Templates: time 0.04701/0.5626, allocations: 26.32 MB / 0.5074 GB, free: 7.812 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches