Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001134/0.001133, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 61.22 kB / 306.4 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1223, allocations: 50.54 MB / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01347/0.1358, allocations: 10.86 MB / 367.8 MB, free: 3.504 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2538/0.3897, allocations: 3.618 MB / 371.5 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002852/0.3926, allocations: 62.56 kB / 371.5 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003297/0.3959, allocations: 0.719 MB / 372.2 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003805/0.3998, allocations: 0.779 MB / 373 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001583/0.4014, allocations: 402.7 kB / 373.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00565/0.407, allocations: 2.932 MB / 376.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004343/0.4114, allocations: 2.734 MB / 379.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003809/0.4152, allocations: 1.384 MB / 380.5 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004253/0.4195, allocations: 1.79 MB / 382.3 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001309/0.4209, allocations: 371.4 kB / 382.6 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002258/0.4231, allocations: 481.5 kB / 383.1 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001483/0.4246, allocations: 1.08 MB / 384.2 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003848/0.4285, allocations: 1.671 MB / 385.8 MB, free: 5.926 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007711/0.4362, allocations: 4.836 MB / 390.7 MB, free: 3.555 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.4362, allocations: 1.375 kB / 390.7 MB, free: 3.555 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.4363, allocations: 0 / 390.7 MB, free: 3.555 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002034/0.4365, allocations: 3.938 kB / 390.7 MB, free: 3.551 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.01171/0.4482, allocations: 3.395 MB / 394.1 MB, free: 1.227 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.49e-05/0.4483, allocations: 9.625 kB / 394.1 MB, free: 1.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001575/0.4499, allocations: 347.7 kB / 394.4 MB, free: 1.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004062/0.4539, allocations: 1.777 MB / 396.2 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001845/0.4541, allocations: 192.6 kB / 396.4 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004113/0.4546, allocations: 258.8 kB / 396.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006884/0.4615, allocations: 3.275 MB / 399.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.966e-05/0.4616, allocations: 14.08 kB / 399.9 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002478/0.4618, allocations: 104.7 kB / 400 MB, free: 13.61 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001678/0.462, allocations: 125 kB / 400.2 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00593/0.4679, allocations: 2.749 MB / 402.9 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02015/0.4881, allocations: 10.48 MB / 413.4 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001894/0.49, allocations: 1.362 MB / 414.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.4913, allocations: 0.7882 MB / 415.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003352/0.4916, allocations: 202.1 kB / 415.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.623e-05/0.4917, allocations: 47.56 kB / 415.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 4.428e-06/0.4917, allocations: 3.984 kB / 415.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.01625/0.508, allocations: 6.906 MB / 422.7 MB, free: 6.684 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.671e-05/0.508, allocations: 64.41 kB / 422.7 MB, free: 6.605 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003059/0.5111, allocations: 1.794 MB / 424.5 MB, free: 4.812 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002337/0.5114, allocations: 45.7 kB / 424.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001105/0.5125, allocations: 1.277 MB / 425.9 MB, free: 3.473 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000509/0.513, allocations: 431.1 kB / 426.3 MB, free: 3.055 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005746/0.5136, allocations: 295.2 kB / 426.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.5138, allocations: 305.1 kB / 426.9 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001395/0.5152, allocations: 0.7769 MB / 427.6 MB, free: 1.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001863/0.517, allocations: 1.29 MB / 428.9 MB, free: 168 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002894/0.52, allocations: 2.211 MB / 431.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.52, allocations: 4 kB / 431.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004391/0.5244, allocations: 2.471 MB / 433.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.5244, allocations: 23.92 kB / 433.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/0.5245, allocations: 19.94 kB / 433.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006602/0.5251, allocations: 243.3 kB / 433.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/0.5266, allocations: 419.3 kB / 434.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00291/0.5295, allocations: 3.24 MB / 437.6 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/0.5315, allocations: 131.8 kB / 437.7 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/0.5316, allocations: 72 kB / 437.8 MB, free: 6.82 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001809/0.5335, allocations: 0.8213 MB / 438.6 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005322/0.534, allocations: 185.7 kB / 438.8 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003503/0.5375, allocations: 2.043 MB / 440.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.5375, allocations: 12 kB / 440.8 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.5376, allocations: 0 / 440.8 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.656e-05/0.5376, allocations: 7.969 kB / 440.8 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008534/0.5461, allocations: 4.761 MB / 445.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.5462, allocations: 4 kB / 445.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.5473, allocations: 259.6 kB / 445.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005541/0.5478, allocations: 211.4 kB / 446 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-05/0.5479, allocations: 24 kB / 446.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002668/0.5506, allocations: 3.214 MB / 449.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.5506, allocations: 8.078 kB / 449.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004885/0.5555, allocations: 3.133 MB / 452.4 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001239/0.5568, allocations: 422.7 kB / 452.8 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002833/0.5571, allocations: 28.06 kB / 452.9 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.5581, allocations: 103.7 kB / 453 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.5583, allocations: 76.89 kB / 453 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.762e-05/0.5584, allocations: 32 kB / 453.1 MB, free: 7.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002019/0.5604, allocations: 1.228 MB / 454.3 MB, free: 5.801 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5604, allocations: 4 kB / 454.3 MB, free: 5.797 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002139/0.5626, allocations: 488 kB / 454.8 MB, free: 5.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005695/0.5631, allocations: 193.8 kB / 455 MB, free: 5.125 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00566/0.5688, allocations: 2.991 MB / 458 MB, free: 2.066 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/0.5688, allocations: 4 kB / 458 MB, free: 2.062 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002014/0.5709, allocations: 1.339 MB / 459.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002859/0.5737, allocations: 0.4906 MB / 459.8 MB, free: 184 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/0.5844, allocations: 6.036 MB / 465.8 MB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001835/0.5863, allocations: 2.006 MB / 467.8 MB, free: 8.047 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001948/0.5883, allocations: 0.496 MB / 468.3 MB, free: 7.547 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004386/0.5887, allocations: 139.4 kB / 468.5 MB, free: 7.41 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5887, allocations: 0 / 468.5 MB, free: 7.41 MB / 382.1 MB Notification: Performance of Templates: time 0.05157/0.6403, allocations: 25.86 MB / 494.3 MB, free: 13.84 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches