Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001292/0.001292, allocations: 116.8 kB / 19.17 MB, free: 3.895 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.00144/0.00144, allocations: 214.6 kB / 22.13 MB, free: 0.9414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.488/1.488, allocations: 230.4 MB / 255.4 MB, free: 15.02 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 75.81 kB / 374.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1097, allocations: 53.32 MB / 428.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.2544/0.364, allocations: 10.99 MB / 439.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008013/0.372, allocations: 3.688 MB / 442.8 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003064/0.3751, allocations: 68.31 kB / 442.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00301/0.3781, allocations: 0.8864 MB / 443.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00453/0.3826, allocations: 0.9063 MB / 444.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001716/0.3844, allocations: 461 kB / 445.1 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005339/0.3897, allocations: 2.941 MB / 448 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003064/0.3928, allocations: 1.982 MB / 450 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0033/0.3961, allocations: 1.39 MB / 451.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004395/0.4005, allocations: 1.799 MB / 453.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009693/0.4014, allocations: 372.8 kB / 453.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001729/0.4032, allocations: 487 kB / 454 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001458/0.4046, allocations: 1.083 MB / 455.1 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003007/0.4076, allocations: 1.671 MB / 456.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007805/0.4154, allocations: 4.906 MB / 461.7 MB, free: 9.594 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4154, allocations: 1 kB / 461.7 MB, free: 9.594 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.4154, allocations: 0 / 461.7 MB, free: 9.594 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000181/0.4156, allocations: 0 / 461.7 MB, free: 9.594 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.01046/0.4261, allocations: 3.485 MB / 465.2 MB, free: 7.164 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.4261, allocations: 9.75 kB / 465.2 MB, free: 7.164 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001277/0.4274, allocations: 365.8 kB / 465.5 MB, free: 6.977 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003753/0.4312, allocations: 1.839 MB / 467.4 MB, free: 5.664 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.4313, allocations: 192 kB / 467.6 MB, free: 5.574 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004473/0.4318, allocations: 252.5 kB / 467.8 MB, free: 5.488 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006704/0.4385, allocations: 3.281 MB / 471.1 MB, free: 3.547 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.774e-05/0.4386, allocations: 10.16 kB / 471.1 MB, free: 3.539 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002679/0.4388, allocations: 101 kB / 471.2 MB, free: 3.461 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001613/0.439, allocations: 130.4 kB / 471.3 MB, free: 3.434 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005067/0.4441, allocations: 2.747 MB / 474.1 MB, free: 2.035 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01891/0.463, allocations: 10.41 MB / 484.5 MB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002159/0.4651, allocations: 1.303 MB / 485.8 MB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001335/0.4665, allocations: 0.7015 MB / 486.5 MB, free: 5.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003468/0.4668, allocations: 203.2 kB / 486.7 MB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/0.4669, allocations: 47.56 kB / 486.7 MB, free: 5.355 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.476e-06/0.4669, allocations: 0 / 486.7 MB, free: 5.355 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01778/0.4846, allocations: 6.938 MB / 493.7 MB, free: 14.3 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.4847, allocations: 68.41 kB / 493.7 MB, free: 14.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004236/0.4889, allocations: 1.794 MB / 495.5 MB, free: 12.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001707/0.4891, allocations: 45.7 kB / 495.6 MB, free: 12.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.4903, allocations: 1.31 MB / 496.9 MB, free: 11.06 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005068/0.4908, allocations: 452.2 kB / 497.3 MB, free: 10.61 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005359/0.4914, allocations: 292.6 kB / 497.6 MB, free: 10.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.4915, allocations: 309 kB / 497.9 MB, free: 10.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/0.4929, allocations: 0.7769 MB / 498.7 MB, free: 9.238 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001747/0.4946, allocations: 1.288 MB / 500 MB, free: 7.727 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003119/0.4978, allocations: 2.21 MB / 0.4904 GB, free: 5.289 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.4978, allocations: 8 kB / 0.4904 GB, free: 5.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004522/0.5023, allocations: 2.483 MB / 0.4928 GB, free: 2.777 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.5023, allocations: 12 kB / 0.4929 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.877e-05/0.5023, allocations: 16 kB / 0.4929 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006781/0.503, allocations: 239.6 kB / 0.4931 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001479/0.5045, allocations: 415.3 kB / 0.4935 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003115/0.5076, allocations: 3.24 MB / 0.4967 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001768/0.5094, allocations: 139.7 kB / 0.4968 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/0.5095, allocations: 71.98 kB / 0.4969 GB, free: 14.36 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.001852/0.5114, allocations: 0.8222 MB / 0.4977 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004938/0.5119, allocations: 190.8 kB / 0.4978 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00374/0.5156, allocations: 2.046 MB / 0.4998 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.37e-05/0.5156, allocations: 12 kB / 0.4999 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.5156, allocations: 3.938 kB / 0.4999 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/0.5156, allocations: 11.97 kB / 0.4999 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008361/0.524, allocations: 4.741 MB / 0.5045 GB, free: 6.414 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.524, allocations: 4 kB / 0.5045 GB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.5251, allocations: 263.6 kB / 0.5048 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005569/0.5257, allocations: 203.2 kB / 0.505 GB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.681e-05/0.5257, allocations: 28.19 kB / 0.505 GB, free: 5.914 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002965/0.5287, allocations: 3.214 MB / 0.5081 GB, free: 2.422 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.5287, allocations: 7.938 kB / 0.5081 GB, free: 2.414 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005062/0.5338, allocations: 3.136 MB / 0.5112 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.5349, allocations: 435.7 kB / 0.5116 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002742/0.5352, allocations: 24 kB / 0.5116 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009766/0.5362, allocations: 96.69 kB / 0.5117 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.5364, allocations: 84.94 kB / 0.5118 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.061e-05/0.5364, allocations: 32 kB / 0.5118 GB, free: 14.54 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002022/0.5385, allocations: 1.22 MB / 0.513 GB, free: 13.33 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5385, allocations: 4 kB / 0.513 GB, free: 13.33 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001793/0.5403, allocations: 491.9 kB / 0.5135 GB, free: 12.85 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.0004305/0.5407, allocations: 201.3 kB / 0.5137 GB, free: 12.64 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003763/0.5445, allocations: 2.267 MB / 0.5159 GB, free: 10.31 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.5445, allocations: 4 kB / 0.5159 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001918/0.5464, allocations: 1.274 MB / 0.5171 GB, free: 8.961 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002575/0.549, allocations: 0.4902 MB / 0.5176 GB, free: 8.496 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01006/0.559, allocations: 5.003 MB / 0.5225 GB, free: 3.422 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00204/0.5611, allocations: 1.97 MB / 0.5244 GB, free: 1.422 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008444/0.5619, allocations: 155.4 kB / 0.5246 GB, free: 1.27 MB / 430.1 MB Notification: Performance of SimCode: time 1.953e-06/0.5619, allocations: 0 / 0.5246 GB, free: 1.27 MB / 430.1 MB Notification: Performance of Templates: time 0.1076/0.6695, allocations: 83.25 MB / 0.6059 GB, free: 14.07 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 13.575209948932752]