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.001409/0.001409, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.00148/0.00148, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.597/1.597, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.002778/0.002778, allocations: 47.92 kB / 373.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1415, allocations: 53.32 MB / 426.8 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.2757/0.4172, allocations: 11.01 MB / 437.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006395/0.4236, allocations: 3.687 MB / 441.5 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002191/0.4258, allocations: 84.22 kB / 441.6 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002372/0.4281, allocations: 0.8745 MB / 442.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003127/0.4313, allocations: 0.9147 MB / 443.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.4325, allocations: 461.6 kB / 443.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003459/0.436, allocations: 2.946 MB / 446.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002797/0.4388, allocations: 1.986 MB / 448.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002634/0.4414, allocations: 1.416 MB / 450.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00287/0.4443, allocations: 1.799 MB / 452 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006931/0.445, allocations: 373 kB / 452.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/0.4461, allocations: 483.4 kB / 452.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001365/0.4475, allocations: 1.086 MB / 453.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002343/0.4498, allocations: 1.671 MB / 455.6 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007438/0.4573, allocations: 4.907 MB / 460.5 MB, free: 9.453 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.034e-06/0.4573, allocations: 1.188 kB / 460.5 MB, free: 9.453 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4573, allocations: 0 / 460.5 MB, free: 9.453 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001619/0.4574, allocations: 1.688 kB / 460.5 MB, free: 9.453 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.00926/0.4667, allocations: 3.481 MB / 464 MB, free: 7.027 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.675e-05/0.4667, allocations: 9.406 kB / 464 MB, free: 7.027 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001388/0.4681, allocations: 365.4 kB / 464.3 MB, free: 6.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00366/0.4718, allocations: 1.847 MB / 466.2 MB, free: 5.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.472, allocations: 188.1 kB / 466.4 MB, free: 5.434 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004384/0.4724, allocations: 254.7 kB / 466.6 MB, free: 5.344 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006174/0.4786, allocations: 3.288 MB / 469.9 MB, free: 3.395 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.687e-05/0.4787, allocations: 4.125 kB / 469.9 MB, free: 3.395 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002768/0.4789, allocations: 101.7 kB / 470 MB, free: 3.316 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001541/0.4791, allocations: 122.2 kB / 470.1 MB, free: 3.297 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005239/0.4843, allocations: 2.747 MB / 472.9 MB, free: 1.898 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01776/0.5021, allocations: 10.41 MB / 483.3 MB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002071/0.5042, allocations: 1.294 MB / 484.6 MB, free: 6.172 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001281/0.5054, allocations: 0.6991 MB / 485.3 MB, free: 5.469 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003321/0.5058, allocations: 212.2 kB / 485.5 MB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.621e-05/0.5058, allocations: 39.56 kB / 485.5 MB, free: 5.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.196e-06/0.5058, allocations: 0.5625 kB / 485.5 MB, free: 5.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01684/0.5226, allocations: 6.95 MB / 492.5 MB, free: 14.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.5227, allocations: 64.41 kB / 492.5 MB, free: 14.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002946/0.5257, allocations: 1.79 MB / 494.3 MB, free: 12.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.5258, allocations: 53.64 kB / 494.4 MB, free: 12.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/0.5269, allocations: 1.302 MB / 495.7 MB, free: 10.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004182/0.5273, allocations: 456.7 kB / 496.1 MB, free: 10.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005088/0.5278, allocations: 291.5 kB / 496.4 MB, free: 10.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.5279, allocations: 309.1 kB / 496.7 MB, free: 9.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00127/0.5292, allocations: 0.7769 MB / 497.5 MB, free: 9.055 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001842/0.5311, allocations: 1.288 MB / 498.8 MB, free: 7.543 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003322/0.5344, allocations: 2.206 MB / 0.4892 GB, free: 5.109 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/0.5344, allocations: 11.94 kB / 0.4892 GB, free: 5.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004494/0.5389, allocations: 2.483 MB / 0.4917 GB, free: 2.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.5389, allocations: 12.62 kB / 0.4917 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.776e-05/0.5389, allocations: 16 kB / 0.4917 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006984/0.5396, allocations: 239.5 kB / 0.4919 GB, free: 2.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001566/0.5412, allocations: 423.3 kB / 0.4923 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003283/0.5445, allocations: 3.232 MB / 0.4955 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/0.5462, allocations: 143.7 kB / 0.4956 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.5463, allocations: 72 kB / 0.4957 GB, free: 14.18 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.001764/0.5481, allocations: 0.8172 MB / 0.4965 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00042/0.5485, allocations: 194.8 kB / 0.4967 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003832/0.5523, allocations: 2.042 MB / 0.4987 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.5523, allocations: 12 kB / 0.4987 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.5523, allocations: 4 kB / 0.4987 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.5524, allocations: 11.97 kB / 0.4987 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008644/0.561, allocations: 4.743 MB / 0.5033 GB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.561, allocations: 4 kB / 0.5033 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/0.5622, allocations: 259.6 kB / 0.5036 GB, free: 5.973 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006241/0.5628, allocations: 203.5 kB / 0.5038 GB, free: 5.762 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.061e-05/0.5629, allocations: 27.98 kB / 0.5038 GB, free: 5.734 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00328/0.5662, allocations: 3.212 MB / 0.5069 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.5662, allocations: 4.031 kB / 0.5069 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005412/0.5716, allocations: 3.144 MB / 0.51 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/0.5729, allocations: 431.8 kB / 0.5104 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002497/0.5731, allocations: 24 kB / 0.5104 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.5742, allocations: 100.4 kB / 0.5105 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.5744, allocations: 88.89 kB / 0.5106 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-05/0.5745, allocations: 32 kB / 0.5107 GB, free: 14.36 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002252/0.5767, allocations: 1.224 MB / 0.5118 GB, free: 13.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5767, allocations: 0 / 0.5118 GB, free: 13.14 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001925/0.5787, allocations: 491.9 kB / 0.5123 GB, free: 12.66 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.0004379/0.5791, allocations: 194.9 kB / 0.5125 GB, free: 12.46 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004069/0.5832, allocations: 2.272 MB / 0.5147 GB, free: 10.12 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.5832, allocations: 4 kB / 0.5147 GB, free: 10.12 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002014/0.5852, allocations: 1.273 MB / 0.516 GB, free: 8.777 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002519/0.5877, allocations: 0.495 MB / 0.5165 GB, free: 8.312 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00913/0.5968, allocations: 4.942 MB / 0.5213 GB, free: 3.301 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002026/0.5989, allocations: 2.022 MB / 0.5233 GB, free: 1.246 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001579/0.6005, allocations: 0.4921 MB / 0.5237 GB, free: 0.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004489/0.6009, allocations: 135.4 kB / 0.5239 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of SimCode: time 5e-07/0.6009, allocations: 0 / 0.5239 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of Templates: time 0.05295/0.6539, allocations: 26.71 MB / 0.5499 GB, free: 6.152 MB / 462.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.986294839531183]