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.001012/0.001012, allocations: 98.03 kB / 17 MB, free: 6.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001387/0.001387, allocations: 192.1 kB / 17.9 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002127/0.0002127, allocations: 8 kB / 307.1 MB, free: 1.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09328/0.0935, allocations: 51.52 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.1739/0.2675, allocations: 14.49 MB / 373.1 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009429/0.2769, allocations: 5.2 MB / 378.3 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00201/0.279, allocations: 101 kB / 378.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002307/0.2813, allocations: 0.8553 MB / 379.3 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002853/0.2841, allocations: 1.085 MB / 380.4 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001579/0.2857, allocations: 0.682 MB / 381.1 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004207/0.29, allocations: 3.869 MB / 384.9 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003062/0.293, allocations: 2.588 MB / 387.5 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002095/0.2951, allocations: 1.301 MB / 388.8 MB, free: 6.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002128/0.2973, allocations: 1.734 MB / 390.6 MB, free: 5.996 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003843/0.2977, allocations: 204.1 kB / 390.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001196/0.2989, allocations: 437.6 kB / 391.2 MB, free: 5.926 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007481/0.2996, allocations: 0.888 MB / 392.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007949/0.3004, allocations: 0.7585 MB / 392.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004542/0.305, allocations: 5.617 MB / 398.4 MB, free: 1.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.305, allocations: 0 / 398.4 MB, free: 1.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.305, allocations: 0 / 398.4 MB, free: 1.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001643/0.3052, allocations: 4 kB / 398.4 MB, free: 1.09 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.008768/0.314, allocations: 3.993 MB / 402.4 MB, free: 14.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.314, allocations: 7.844 kB / 402.4 MB, free: 14.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003081/0.3171, allocations: 0.6838 MB / 403.1 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004234/0.3213, allocations: 2.388 MB / 405.5 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.3216, allocations: 264.4 kB / 405.8 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005364/0.3221, allocations: 346.4 kB / 406.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007827/0.33, allocations: 4.442 MB / 410.6 MB, free: 7.422 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.586e-05/0.3301, allocations: 0 / 410.6 MB, free: 7.422 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003222/0.3304, allocations: 142.4 kB / 410.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001654/0.3306, allocations: 166.7 kB / 410.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006614/0.3372, allocations: 3.735 MB / 414.6 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02184/0.359, allocations: 14.72 MB / 429.3 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005201/0.3643, allocations: 5.61 MB / 434.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002699/0.367, allocations: 1.587 MB / 436.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006982/0.374, allocations: 4.241 MB / 440.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/0.374, allocations: 43.88 kB / 440.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 3.236e-06/0.3741, allocations: 2.734 kB / 440.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01007/0.3841, allocations: 5.685 MB / 446.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.3842, allocations: 68.72 kB / 446.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003049/0.3873, allocations: 2.103 MB / 448.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.859e-05/0.3874, allocations: 45.7 kB / 448.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001116/0.3885, allocations: 1.661 MB / 450.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000365/0.3889, allocations: 467.4 kB / 450.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.579e-05/0.389, allocations: 40 kB / 450.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3891, allocations: 381.8 kB / 451.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.3903, allocations: 0.7223 MB / 451.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.3919, allocations: 1.364 MB / 453.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/0.3933, allocations: 0.9589 MB / 454.3 MB, free: 9.996 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/0.3933, allocations: 8 kB / 454.3 MB, free: 9.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004098/0.3974, allocations: 2.584 MB / 456.9 MB, free: 7.367 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.01e-05/0.3975, allocations: 19.95 kB / 456.9 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/0.3975, allocations: 20 kB / 456.9 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004928/0.398, allocations: 190.6 kB / 457.1 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001618/0.3996, allocations: 459.2 kB / 457.5 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003142/0.4028, allocations: 3.509 MB / 461 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/0.4043, allocations: 115.7 kB / 461.2 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/0.4044, allocations: 87.98 kB / 461.2 MB, free: 2.703 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (224): * Single equations (assignments): 221 * 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%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001846/0.4063, allocations: 1.048 MB / 462.3 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003137/0.4066, allocations: 209.4 kB / 462.5 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003883/0.4105, allocations: 2.274 MB / 464.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.188e-05/0.4105, allocations: 15.95 kB / 464.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/0.4106, allocations: 4 kB / 464.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.423e-05/0.4106, allocations: 10.27 kB / 464.8 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00898/0.4196, allocations: 5.297 MB / 470.1 MB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.4196, allocations: 4 kB / 470.1 MB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.4207, allocations: 223.7 kB / 470.3 MB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008246/0.4215, allocations: 323.3 kB / 470.6 MB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.4216, allocations: 35.92 kB / 470.7 MB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007508/0.4291, allocations: 7.539 MB / 478.2 MB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.4292, allocations: 4 kB / 478.2 MB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005246/0.4344, allocations: 3.277 MB / 481.5 MB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00118/0.4356, allocations: 470.2 kB / 481.9 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006052/0.4362, allocations: 24 kB / 482 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.4375, allocations: 79.86 kB / 482.1 MB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001964/0.4377, allocations: 101.1 kB / 482.2 MB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.4378, allocations: 36.12 kB / 482.2 MB, free: 12.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002833/0.4407, allocations: 1.424 MB / 483.6 MB, free: 11.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4407, allocations: 0 / 483.6 MB, free: 11.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002659/0.4434, allocations: 0.5742 MB / 484.2 MB, free: 10.91 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (109): * Single equations (assignments): 105 * 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%) 8,(1,100.0%) 1,(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.0003637/0.4437, allocations: 173.9 kB / 484.4 MB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003533/0.4473, allocations: 2.144 MB / 486.5 MB, free: 8.547 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4473, allocations: 4.062 kB / 486.5 MB, free: 8.543 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002123/0.4494, allocations: 1.416 MB / 487.9 MB, free: 7.078 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003043/0.4525, allocations: 0.5389 MB / 488.5 MB, free: 6.547 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/0.4644, allocations: 7.369 MB / 495.8 MB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002721/0.4672, allocations: 2.418 MB / 498.2 MB, free: 12.67 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001909/0.4691, allocations: 498.6 kB / 498.7 MB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005601/0.4697, allocations: 155.4 kB / 498.9 MB, free: 12.03 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4697, allocations: 0 / 498.9 MB, free: 12.03 MB / 414.1 MB Notification: Performance of Templates: time 0.06676/0.5364, allocations: 27.06 MB / 0.5136 GB, free: 1.254 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches