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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001277/0.001277, allocations: 104.5 kB / 19.8 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001368/0.001368, allocations: 210.9 kB / 22.99 MB, free: 5.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 230.2 MB / 256.2 MB, free: 8.559 MB / 206.1 MB " [Timeout remaining time 178] 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=20000,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=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 63.89 kB / 376.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.344, allocations: 53.33 MB / 429.8 MB, free: 7.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01533/0.3593, allocations: 11.05 MB / 440.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01024/0.3696, allocations: 3.688 MB / 444.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003382/0.3729, allocations: 67.69 kB / 444.6 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003831/0.3768, allocations: 0.8774 MB / 445.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005034/0.3818, allocations: 0.9087 MB / 446.4 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001951/0.3838, allocations: 471.2 kB / 446.9 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005525/0.3893, allocations: 2.946 MB / 449.8 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002696/0.392, allocations: 1.564 MB / 451.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002341/0.3943, allocations: 1.39 MB / 452.8 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003004/0.3973, allocations: 1.798 MB / 454.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000868/0.3982, allocations: 372 kB / 454.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001245/0.3994, allocations: 487.8 kB / 455.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001235/0.4007, allocations: 1.091 MB / 456.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002552/0.4032, allocations: 1.676 MB / 458.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006023/0.4093, allocations: 4.908 MB / 463.1 MB, free: 6.227 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.4093, allocations: 4 kB / 463.1 MB, free: 6.223 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4093, allocations: 0 / 463.1 MB, free: 6.223 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001165/0.4094, allocations: 0 / 463.1 MB, free: 6.223 MB / 366.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.007737/0.4171, allocations: 3.477 MB / 466.6 MB, free: 2.676 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.4172, allocations: 8.031 kB / 466.6 MB, free: 2.668 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001184/0.4183, allocations: 362.8 kB / 466.9 MB, free: 2.312 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004269/0.4226, allocations: 1.843 MB / 468.8 MB, free: 424 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002234/0.4228, allocations: 189.4 kB / 469 MB, free: 232 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007572/0.4236, allocations: 252 kB / 469.2 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008735/0.4323, allocations: 3.291 MB / 472.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001264/0.4325, allocations: 7.891 kB / 472.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006011/0.4331, allocations: 104 kB / 472.6 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000186/0.4332, allocations: 128.9 kB / 472.7 MB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006411/0.4397, allocations: 2.748 MB / 475.5 MB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02335/0.463, allocations: 10.41 MB / 485.9 MB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002406/0.4654, allocations: 1.306 MB / 487.2 MB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001446/0.4669, allocations: 0.7071 MB / 487.9 MB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003788/0.4672, allocations: 203.2 kB / 488.1 MB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.4673, allocations: 43.56 kB / 488.1 MB, free: 12.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.945e-06/0.4673, allocations: 4 kB / 488.1 MB, free: 12.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01708/0.4844, allocations: 6.935 MB / 495.1 MB, free: 5.426 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.284e-05/0.4845, allocations: 64.41 kB / 495.1 MB, free: 5.352 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004119/0.4886, allocations: 1.79 MB / 496.9 MB, free: 3.562 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002275/0.4888, allocations: 45.7 kB / 497 MB, free: 3.512 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001262/0.4901, allocations: 1.31 MB / 498.3 MB, free: 2.188 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006052/0.4907, allocations: 448.2 kB / 498.7 MB, free: 1.746 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006941/0.4914, allocations: 295.5 kB / 499 MB, free: 1.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.4915, allocations: 309.1 kB / 499.3 MB, free: 1.145 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001654/0.4932, allocations: 0.773 MB / 0.4884 GB, free: 380 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002194/0.4953, allocations: 1.296 MB / 0.4896 GB, free: 14.85 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003848/0.4992, allocations: 2.21 MB / 0.4918 GB, free: 12.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.562e-05/0.4992, allocations: 8 kB / 0.4918 GB, free: 12.4 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005642/0.5049, allocations: 2.479 MB / 0.4942 GB, free: 9.902 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.07e-05/0.5049, allocations: 16.19 kB / 0.4942 GB, free: 9.887 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.281e-05/0.505, allocations: 16 kB / 0.4942 GB, free: 9.871 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007274/0.5057, allocations: 239.2 kB / 0.4945 GB, free: 9.625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001579/0.5073, allocations: 419.3 kB / 0.4949 GB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003831/0.5111, allocations: 3.249 MB / 0.498 GB, free: 5.676 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/0.5128, allocations: 131.7 kB / 0.4982 GB, free: 5.547 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001953/0.513, allocations: 71.98 kB / 0.4982 GB, free: 5.477 MB / 414.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.001839/0.5149, allocations: 0.8173 MB / 0.499 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006238/0.5155, allocations: 202.8 kB / 0.4992 GB, free: 4.449 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003931/0.5194, allocations: 2.035 MB / 0.5012 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/0.5194, allocations: 12 kB / 0.5012 GB, free: 2.387 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.5194, allocations: 4 kB / 0.5012 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.5195, allocations: 3.984 kB / 0.5012 GB, free: 2.379 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009352/0.5288, allocations: 4.745 MB / 0.5059 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.5288, allocations: 0 / 0.5059 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/0.5299, allocations: 263.9 kB / 0.5061 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005949/0.5305, allocations: 207.2 kB / 0.5063 GB, free: 13.06 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001408/0.5307, allocations: 27.98 kB / 0.5063 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003458/0.5341, allocations: 3.223 MB / 0.5095 GB, free: 9.527 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.5341, allocations: 0 / 0.5095 GB, free: 9.527 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005331/0.5395, allocations: 3.136 MB / 0.5126 GB, free: 6.336 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/0.5407, allocations: 435.7 kB / 0.513 GB, free: 5.891 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004979/0.5412, allocations: 24 kB / 0.513 GB, free: 5.867 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001259/0.5424, allocations: 99.88 kB / 0.5131 GB, free: 5.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/0.5427, allocations: 84.83 kB / 0.5132 GB, free: 5.688 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.942e-05/0.5428, allocations: 35.98 kB / 0.5132 GB, free: 5.652 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002754/0.5455, allocations: 1.224 MB / 0.5144 GB, free: 4.438 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5455, allocations: 0 / 0.5144 GB, free: 4.438 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002093/0.5476, allocations: 495.9 kB / 0.5149 GB, free: 3.953 MB / 430.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.0005885/0.5482, allocations: 190.5 kB / 0.5151 GB, free: 3.758 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004158/0.5524, allocations: 2.264 MB / 0.5173 GB, free: 1.43 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/0.5524, allocations: 12 kB / 0.5173 GB, free: 1.418 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002189/0.5546, allocations: 1.268 MB / 0.5185 GB, free: 80 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002916/0.5575, allocations: 499.6 kB / 0.519 GB, free: 15.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009836/0.5673, allocations: 4.988 MB / 0.5239 GB, free: 10.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002504/0.5698, allocations: 2.006 MB / 0.5258 GB, free: 8.508 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001695/0.5715, allocations: 0.496 MB / 0.5263 GB, free: 8.008 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005871/0.5721, allocations: 139.4 kB / 0.5264 GB, free: 7.871 MB / 446.1 MB Notification: Performance of SimCode: time 1.183e-06/0.5721, allocations: 0 / 0.5264 GB, free: 7.871 MB / 446.1 MB Notification: Performance of Templates: time 0.2547/0.8268, allocations: 27.11 MB / 0.5529 GB, free: 91.97 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (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) [Timeout 480] 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.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.769572361372411]