Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 210.7 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.502/1.502, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 43.92 kB / 378.2 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.286, allocations: 53.37 MB / 431.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01317/0.2992, allocations: 9.652 MB / 441.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008778/0.3079, allocations: 3.47 MB / 444.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002324/0.3103, allocations: 91.38 kB / 444.8 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002596/0.3129, allocations: 0.8031 MB / 445.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003438/0.3163, allocations: 0.9243 MB / 446.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.3176, allocations: 471.3 kB / 447 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004558/0.3221, allocations: 2.95 MB / 449.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002494/0.3246, allocations: 1.509 MB / 451.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002549/0.3272, allocations: 1.417 MB / 452.9 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003263/0.3304, allocations: 1.685 MB / 454.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007154/0.3311, allocations: 372 kB / 454.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001335/0.3325, allocations: 479.8 kB / 455.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001456/0.3339, allocations: 1.095 MB / 456.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002604/0.3365, allocations: 1.342 MB / 457.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006597/0.3431, allocations: 4.943 MB / 462.8 MB, free: 7.355 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3431, allocations: 0 / 462.8 MB, free: 7.355 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3431, allocations: 0 / 462.8 MB, free: 7.355 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001614/0.3433, allocations: 0 / 462.8 MB, free: 7.355 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.008534/0.3518, allocations: 3.405 MB / 466.2 MB, free: 3.898 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.3519, allocations: 12.03 kB / 466.2 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001175/0.3531, allocations: 362.8 kB / 466.5 MB, free: 3.531 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003917/0.357, allocations: 1.756 MB / 468.3 MB, free: 1.738 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.3572, allocations: 189.4 kB / 468.5 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004259/0.3576, allocations: 259.9 kB / 468.7 MB, free: 1.297 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006306/0.3639, allocations: 3.355 MB / 472.1 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.675e-05/0.364, allocations: 19.88 kB / 472.1 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002426/0.3642, allocations: 99.94 kB / 472.2 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001597/0.3644, allocations: 128.9 kB / 472.3 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00496/0.3693, allocations: 2.74 MB / 475.1 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01713/0.3865, allocations: 9.028 MB / 484.1 MB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001952/0.3884, allocations: 1.063 MB / 485.2 MB, free: 404 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001281/0.3897, allocations: 0.712 MB / 485.9 MB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002418/0.3899, allocations: 44.97 kB / 485.9 MB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.181e-05/0.39, allocations: 47.56 kB / 486 MB, free: 15.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.326e-06/0.39, allocations: 0 / 486 MB, free: 15.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01598/0.406, allocations: 6.625 MB / 492.6 MB, free: 8.918 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.266e-05/0.406, allocations: 64.41 kB / 492.7 MB, free: 8.844 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003059/0.4091, allocations: 1.645 MB / 494.3 MB, free: 7.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001385/0.4092, allocations: 45.7 kB / 494.3 MB, free: 7.141 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001295/0.4105, allocations: 1.329 MB / 495.7 MB, free: 5.801 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004864/0.411, allocations: 448.2 kB / 496.1 MB, free: 5.359 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005097/0.4115, allocations: 295.4 kB / 496.4 MB, free: 5.062 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.4117, allocations: 305.1 kB / 496.7 MB, free: 4.762 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001376/0.4131, allocations: 0.7769 MB / 497.5 MB, free: 3.984 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001784/0.4148, allocations: 1.292 MB / 498.8 MB, free: 2.465 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003346/0.4182, allocations: 2.206 MB / 0.4892 GB, free: 32 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-05/0.4182, allocations: 4 kB / 0.4892 GB, free: 28 kB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004846/0.423, allocations: 2.467 MB / 0.4916 GB, free: 13.54 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.4231, allocations: 12 kB / 0.4917 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.71e-05/0.4231, allocations: 16.75 kB / 0.4917 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006833/0.4238, allocations: 251.2 kB / 0.4919 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001545/0.4253, allocations: 415.3 kB / 0.4923 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003315/0.4287, allocations: 2.985 MB / 0.4952 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/0.4303, allocations: 135.8 kB / 0.4953 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/0.4304, allocations: 68.06 kB / 0.4954 GB, free: 9.457 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.001634/0.4321, allocations: 0.825 MB / 0.4962 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004267/0.4325, allocations: 182.8 kB / 0.4964 GB, free: 8.441 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003824/0.4363, allocations: 2.026 MB / 0.4984 GB, free: 6.391 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-05/0.4363, allocations: 12 kB / 0.4984 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.4363, allocations: 4 kB / 0.4984 GB, free: 6.375 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.4364, allocations: 7.969 kB / 0.4984 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009365/0.4457, allocations: 4.107 MB / 0.5024 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/0.4457, allocations: 8.062 kB / 0.5024 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.4469, allocations: 263.6 kB / 0.5027 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006093/0.4475, allocations: 207.2 kB / 0.5029 GB, free: 1.691 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.4476, allocations: 24 kB / 0.5029 GB, free: 1.668 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003252/0.4508, allocations: 2.954 MB / 0.5058 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.4508, allocations: 7.938 kB / 0.5058 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005569/0.4564, allocations: 3.132 MB / 0.5088 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001421/0.4578, allocations: 334.8 kB / 0.5092 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005579/0.4584, allocations: 24 kB / 0.5092 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.4597, allocations: 95.86 kB / 0.5093 GB, free: 10.87 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/0.4599, allocations: 88.72 kB / 0.5094 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.46, allocations: 32 kB / 0.5094 GB, free: 10.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002545/0.4625, allocations: 1.106 MB / 0.5105 GB, free: 9.648 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4625, allocations: 0 / 0.5105 GB, free: 9.648 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002699/0.4652, allocations: 483.9 kB / 0.5109 GB, free: 9.176 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.0005604/0.4658, allocations: 195 kB / 0.5111 GB, free: 8.977 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00433/0.4701, allocations: 2.121 MB / 0.5132 GB, free: 6.824 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.4701, allocations: 0 / 0.5132 GB, free: 6.824 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002102/0.4722, allocations: 1.118 MB / 0.5143 GB, free: 5.672 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002867/0.4751, allocations: 440 kB / 0.5147 GB, free: 5.25 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01164/0.4867, allocations: 4.959 MB / 0.5195 GB, free: 228 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002756/0.4895, allocations: 1.437 MB / 0.5209 GB, free: 14.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001809/0.4913, allocations: 498.7 kB / 0.5214 GB, free: 14.26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006153/0.4919, allocations: 127.4 kB / 0.5215 GB, free: 14.13 MB / 446.1 MB Notification: Performance of SimCode: time 1.433e-06/0.4919, allocations: 0 / 0.5215 GB, free: 14.13 MB / 446.1 MB Notification: Performance of Templates: time 0.293/0.7849, allocations: 28 MB / 0.5489 GB, free: 96.2 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.895862312987447]