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.0009021/0.0009025, allocations: 99.31 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001035/0.001035, allocations: 199.6 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002313/0.0002313, allocations: 8 kB / 306.6 MB, free: 1.621 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1037, allocations: 51.49 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.009425/0.1132, allocations: 8.916 MB / 367 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007117/0.1203, allocations: 3.555 MB / 370.5 MB, free: 1.605 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00218/0.1225, allocations: 55.75 kB / 370.6 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002022/0.1246, allocations: 0.688 MB / 371.3 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002531/0.1271, allocations: 0.7827 MB / 372.1 MB, free: 76 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.208/0.3352, allocations: 292.7 kB / 372.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004593/0.3398, allocations: 1.918 MB / 374.3 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002732/0.3425, allocations: 1.853 MB / 376.1 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002131/0.3447, allocations: 0.9408 MB / 377.1 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002705/0.3474, allocations: 1.241 MB / 378.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004676/0.3479, allocations: 149.3 kB / 378.5 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00106/0.3489, allocations: 228.4 kB / 378.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009604/0.3499, allocations: 0.761 MB / 379.4 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008258/0.3508, allocations: 0.563 MB / 380 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004879/0.3556, allocations: 3.889 MB / 383.9 MB, free: 8.914 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3557, allocations: 1.219 kB / 383.9 MB, free: 8.914 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3557, allocations: 0 / 383.9 MB, free: 8.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001579/0.3558, allocations: 0 / 383.9 MB, free: 8.914 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.0074/0.3632, allocations: 2.873 MB / 386.8 MB, free: 7.195 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.3633, allocations: 13.16 kB / 386.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001498/0.3648, allocations: 346.8 kB / 387.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003932/0.3688, allocations: 1.737 MB / 388.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002071/0.369, allocations: 202 kB / 389 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004936/0.3695, allocations: 245.9 kB / 389.3 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005817/0.3753, allocations: 3.248 MB / 392.5 MB, free: 5.395 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.237e-05/0.3754, allocations: 2.75 kB / 392.5 MB, free: 5.395 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002354/0.3756, allocations: 106.5 kB / 392.6 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001389/0.3758, allocations: 127.9 kB / 392.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004523/0.3803, allocations: 2.729 MB / 395.5 MB, free: 4.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01578/0.3961, allocations: 10.47 MB / 406 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001864/0.398, allocations: 1.354 MB / 407.3 MB, free: 9.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003083/0.3983, allocations: 209.1 kB / 407.5 MB, free: 9.562 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.3984, allocations: 43.56 kB / 407.6 MB, free: 9.512 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 2.986e-06/0.3984, allocations: 0 / 407.6 MB, free: 9.512 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01516/0.4136, allocations: 6.965 MB / 414.5 MB, free: 2.438 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.4136, allocations: 68.41 kB / 414.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002741/0.4164, allocations: 1.723 MB / 416.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.4165, allocations: 46.64 kB / 416.4 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008937/0.4174, allocations: 1.277 MB / 417.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000356/0.4178, allocations: 431.4 kB / 418.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.89e-05/0.4179, allocations: 31.28 kB / 418.1 MB, free: 14.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.418, allocations: 369.9 kB / 418.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.4192, allocations: 0.7808 MB / 419.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001513/0.4207, allocations: 1.276 MB / 420.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.4222, allocations: 0.9933 MB / 421.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.4222, allocations: 4 kB / 421.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004016/0.4263, allocations: 2.466 MB / 424 MB, free: 8.711 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.4263, allocations: 13.12 kB / 424 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/0.4263, allocations: 16 kB / 424 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006098/0.427, allocations: 243.5 kB / 424.2 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.4284, allocations: 419.3 kB / 424.6 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002583/0.431, allocations: 3.046 MB / 427.7 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/0.4326, allocations: 139.6 kB / 427.8 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/0.4328, allocations: 68 kB / 427.9 MB, free: 4.504 MB / 334.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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001753/0.4345, allocations: 0.8135 MB / 428.7 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004493/0.435, allocations: 185.7 kB / 428.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003486/0.4385, allocations: 2.054 MB / 430.9 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.4385, allocations: 12 kB / 431 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.4385, allocations: 0 / 431 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.4385, allocations: 7.922 kB / 431 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008058/0.4466, allocations: 4.735 MB / 435.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.4466, allocations: 4 kB / 435.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.4477, allocations: 267.6 kB / 436 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005229/0.4483, allocations: 203.5 kB / 436.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.523e-05/0.4484, allocations: 24 kB / 436.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002396/0.4508, allocations: 3.017 MB / 439.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.4508, allocations: 4 kB / 439.2 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004788/0.4556, allocations: 3.285 MB / 442.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001239/0.4568, allocations: 426.6 kB / 442.9 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002556/0.4571, allocations: 24 kB / 442.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009312/0.4581, allocations: 99.8 kB / 443 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.4582, allocations: 88.91 kB / 443.1 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.924e-05/0.4583, allocations: 32 kB / 443.2 MB, free: 4.742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001982/0.4603, allocations: 1.169 MB / 444.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4603, allocations: 0 / 444.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001785/0.4621, allocations: 484 kB / 444.8 MB, free: 3.109 MB / 350.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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003462/0.4625, allocations: 173.8 kB / 445 MB, free: 2.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00349/0.466, allocations: 2.346 MB / 447.3 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.466, allocations: 0 / 447.3 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001806/0.4678, allocations: 1.348 MB / 448.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002324/0.4701, allocations: 462.4 kB / 449.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01042/0.4806, allocations: 5.79 MB / 454.9 MB, free: 8.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00176/0.4824, allocations: 2.065 MB / 457 MB, free: 6.719 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001928/0.4843, allocations: 0.496 MB / 457.5 MB, free: 6.219 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003995/0.4847, allocations: 135.4 kB / 457.6 MB, free: 6.086 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4847, allocations: 4 kB / 457.6 MB, free: 6.082 MB / 366.1 MB Notification: Performance of Templates: time 0.04253/0.5273, allocations: 23.27 MB / 480.9 MB, free: 15.07 MB / 398.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","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches