Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.001594/0.001594, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.002084/0.002084, allocations: 215.6 kB / 24.48 MB, free: 3.84 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.508/1.508, allocations: 230.6 MB / 258.2 MB, free: 7.812 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_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 47.92 kB / 379 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.331, allocations: 53.37 MB / 432.4 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01359/0.3446, allocations: 10.04 MB / 442.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007965/0.3525, allocations: 3.4 MB / 445.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002431/0.355, allocations: 91.38 kB / 445.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002614/0.3576, allocations: 0.819 MB / 446.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003197/0.3608, allocations: 0.9786 MB / 447.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001349/0.3621, allocations: 443.4 kB / 448.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005349/0.3675, allocations: 3.744 MB / 451.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002535/0.37, allocations: 1.542 MB / 453.4 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002809/0.3728, allocations: 1.706 MB / 455.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003437/0.3763, allocations: 1.953 MB / 457.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008982/0.3772, allocations: 416 kB / 457.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001302/0.3785, allocations: 0.4959 MB / 458 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0013/0.3798, allocations: 1.211 MB / 459.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002364/0.3821, allocations: 1.579 MB / 460.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006533/0.3887, allocations: 5.601 MB / 466.4 MB, free: 4.523 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.3887, allocations: 3.938 kB / 466.4 MB, free: 4.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3887, allocations: 0 / 466.4 MB, free: 4.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001554/0.3888, allocations: 0 / 466.4 MB, free: 4.52 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.008212/0.397, allocations: 3.84 MB / 470.2 MB, free: 0.625 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.3971, allocations: 12.03 kB / 470.2 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.3981, allocations: 406.6 kB / 470.6 MB, free: 220 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003902/0.402, allocations: 2.001 MB / 472.6 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001822/0.4022, allocations: 214.1 kB / 472.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004419/0.4026, allocations: 291.9 kB / 473.1 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006768/0.4094, allocations: 4.155 MB / 477.3 MB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.71e-05/0.4095, allocations: 19.88 kB / 477.3 MB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002684/0.4097, allocations: 120 kB / 477.4 MB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001308/0.4099, allocations: 121.5 kB / 477.5 MB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005805/0.4157, allocations: 3.25 MB / 480.8 MB, free: 5.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01898/0.4346, allocations: 10.34 MB / 491.1 MB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002715/0.4374, allocations: 1.733 MB / 492.8 MB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002116/0.4395, allocations: 1.149 MB / 494 MB, free: 8.344 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002258/0.4397, allocations: 49.28 kB / 494 MB, free: 8.297 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.361e-05/0.4398, allocations: 51.88 kB / 494.1 MB, free: 8.234 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.446e-06/0.4398, allocations: 0 / 494.1 MB, free: 8.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01463/0.4544, allocations: 6.504 MB / 0.4889 GB, free: 1.684 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.522e-05/0.4545, allocations: 72.7 kB / 0.4889 GB, free: 1.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00313/0.4576, allocations: 1.9 MB / 0.4908 GB, free: 15.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001632/0.4578, allocations: 53.7 kB / 0.4908 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.4589, allocations: 1.42 MB / 0.4922 GB, free: 14.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005058/0.4594, allocations: 0.5268 MB / 0.4927 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005742/0.46, allocations: 351.4 kB / 0.4931 GB, free: 13.33 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.4601, allocations: 305.1 kB / 0.4934 GB, free: 13.03 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/0.4615, allocations: 0.8666 MB / 0.4942 GB, free: 12.16 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001808/0.4633, allocations: 1.377 MB / 0.4956 GB, free: 10.57 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003281/0.4666, allocations: 2.322 MB / 0.4978 GB, free: 8.047 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.4666, allocations: 4 kB / 0.4978 GB, free: 8.043 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005972/0.4726, allocations: 3.18 MB / 0.5009 GB, free: 4.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.556e-05/0.4726, allocations: 14.5 kB / 0.5009 GB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.924e-05/0.4727, allocations: 16.5 kB / 0.501 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00237/0.475, allocations: 0.8444 MB / 0.5018 GB, free: 3.914 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.4763, allocations: 343.4 kB / 0.5021 GB, free: 3.578 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01941/0.4957, allocations: 19.13 MB / 0.5208 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002014/0.4977, allocations: 99.81 kB / 0.5209 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002776/0.498, allocations: 72.11 kB / 0.521 GB, free: 15.16 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00211/0.5001, allocations: 0.9499 MB / 0.5219 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005393/0.5007, allocations: 206.7 kB / 0.5221 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004723/0.5054, allocations: 2.536 MB / 0.5246 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/0.5054, allocations: 16 kB / 0.5246 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-05/0.5054, allocations: 8 kB / 0.5246 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.5054, allocations: 7.969 kB / 0.5246 GB, free: 11.38 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0103/0.5157, allocations: 5.119 MB / 0.5296 GB, free: 6.117 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.5157, allocations: 4 kB / 0.5296 GB, free: 6.113 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008187/0.5166, allocations: 199.7 kB / 0.5298 GB, free: 5.918 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001986/0.5186, allocations: 0.7304 MB / 0.5305 GB, free: 5.156 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000103/0.5187, allocations: 35.98 kB / 0.5305 GB, free: 5.121 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2342/0.7529, allocations: 16.81 MB / 0.547 GB, free: 90.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.7529, allocations: 10.25 kB / 0.547 GB, free: 90.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004894/0.7578, allocations: 3.71 MB / 0.5506 GB, free: 88.67 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008847/0.7586, allocations: 401.1 kB / 0.551 GB, free: 88.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002275/0.7589, allocations: 31.56 kB / 0.551 GB, free: 88.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009781/0.7598, allocations: 107.9 kB / 0.5511 GB, free: 88.55 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002644/0.7601, allocations: 148.7 kB / 0.5512 GB, free: 88.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-05/0.7602, allocations: 46.92 kB / 0.5513 GB, free: 88.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001412/0.7616, allocations: 1.268 MB / 0.5525 GB, free: 88.04 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7616, allocations: 0 / 0.5525 GB, free: 88.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0019/0.7635, allocations: 0.6533 MB / 0.5532 GB, free: 87.98 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (2,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.0003045/0.7638, allocations: 209.7 kB / 0.5534 GB, free: 87.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003451/0.7673, allocations: 3.36 MB / 0.5566 GB, free: 85.92 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.7673, allocations: 11.62 kB / 0.5567 GB, free: 85.92 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001813/0.7691, allocations: 2.135 MB / 0.5587 GB, free: 84.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002236/0.7713, allocations: 0.6139 MB / 0.5593 GB, free: 83.58 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006649/0.778, allocations: 5.773 MB / 0.565 GB, free: 78.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/0.7793, allocations: 1.694 MB / 0.5666 GB, free: 77.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003852/0.7797, allocations: 135.4 kB / 0.5668 GB, free: 76.91 MB / 446.1 MB Notification: Performance of SimCode: time 9.42e-07/0.7797, allocations: 0 / 0.5668 GB, free: 76.91 MB / 446.1 MB Notification: Performance of Templates: time 0.3758/1.156, allocations: 188.5 MB / 0.7508 GB, free: 182.1 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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: 16.88456648727879]