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.00163/0.00163, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001818/0.001818, allocations: 214.7 kB / 24.48 MB, free: 3.941 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 2.166/2.166, allocations: 230.6 MB / 258.2 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_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.001811/0.001811, allocations: 59.91 kB / 379 MB, free: 2.422 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5542/0.556, allocations: 53.37 MB / 432.4 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.04018/0.5962, allocations: 10.05 MB / 442.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008481/0.6047, allocations: 3.4 MB / 445.8 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001559/0.6062, allocations: 91.44 kB / 445.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01486/0.6211, allocations: 0.8219 MB / 446.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003822/0.6249, allocations: 0.9864 MB / 447.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001304/0.6262, allocations: 443.4 kB / 448.1 MB, free: 6.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01518/0.6414, allocations: 3.748 MB / 451.9 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002959/0.6444, allocations: 1.593 MB / 453.5 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003026/0.6474, allocations: 1.709 MB / 455.2 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003416/0.6508, allocations: 2.012 MB / 457.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008293/0.6516, allocations: 419.9 kB / 457.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.6529, allocations: 0.496 MB / 458.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001463/0.6544, allocations: 1.212 MB / 459.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002447/0.6568, allocations: 1.579 MB / 460.9 MB, free: 9.961 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007815/0.6646, allocations: 5.601 MB / 466.5 MB, free: 4.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.385e-06/0.6646, allocations: 4 kB / 466.5 MB, free: 4.336 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6646, allocations: 0 / 466.5 MB, free: 4.336 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000212/0.6648, allocations: 0 / 466.5 MB, free: 4.336 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.01209/0.6769, allocations: 3.832 MB / 470.3 MB, free: 460 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.447e-05/0.677, allocations: 12.03 kB / 470.3 MB, free: 448 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001639/0.6786, allocations: 410.6 kB / 470.7 MB, free: 36 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005658/0.6843, allocations: 2.008 MB / 472.8 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002412/0.6845, allocations: 214.1 kB / 473 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006176/0.6852, allocations: 291.9 kB / 473.2 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008994/0.6941, allocations: 4.162 MB / 477.4 MB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-05/0.6942, allocations: 7.953 kB / 477.4 MB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003624/0.6946, allocations: 116 kB / 477.5 MB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001836/0.6948, allocations: 121.5 kB / 477.7 MB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00757/0.7023, allocations: 3.242 MB / 480.9 MB, free: 5.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02372/0.7261, allocations: 10.35 MB / 491.2 MB, free: 11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003414/0.7295, allocations: 1.738 MB / 493 MB, free: 9.297 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00276/0.7322, allocations: 1.145 MB / 494.1 MB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002502/0.7325, allocations: 49.27 kB / 494.2 MB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.932e-05/0.7325, allocations: 51.88 kB / 494.2 MB, free: 8.039 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 4.778e-06/0.7326, allocations: 0 / 494.2 MB, free: 8.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01873/0.7513, allocations: 6.508 MB / 0.489 GB, free: 1.484 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.545e-05/0.7513, allocations: 68.72 kB / 0.4891 GB, free: 1.406 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003642/0.755, allocations: 1.9 MB / 0.4909 GB, free: 15.51 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001886/0.7552, allocations: 57.7 kB / 0.491 GB, free: 15.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00134/0.7565, allocations: 1.416 MB / 0.4924 GB, free: 14.02 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006262/0.7571, allocations: 0.5307 MB / 0.4929 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007755/0.7579, allocations: 347.4 kB / 0.4932 GB, free: 13.13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.7581, allocations: 305.1 kB / 0.4935 GB, free: 12.83 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001956/0.76, allocations: 0.8705 MB / 0.4943 GB, free: 11.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002427/0.7624, allocations: 1.369 MB / 0.4957 GB, free: 10.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004456/0.7669, allocations: 2.326 MB / 0.498 GB, free: 7.852 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.905e-05/0.7669, allocations: 8 kB / 0.498 GB, free: 7.844 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.007872/0.7748, allocations: 3.172 MB / 0.5011 GB, free: 4.629 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.181e-05/0.7748, allocations: 12 kB / 0.5011 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.519e-05/0.7749, allocations: 16 kB / 0.5011 GB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003139/0.778, allocations: 0.8526 MB / 0.5019 GB, free: 3.715 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/0.7798, allocations: 347.4 kB / 0.5023 GB, free: 3.375 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02341/0.8032, allocations: 19.11 MB / 0.5209 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002155/0.8053, allocations: 99.81 kB / 0.521 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000227/0.8056, allocations: 75.98 kB / 0.5211 GB, free: 14.97 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.002094/0.8077, allocations: 0.9346 MB / 0.522 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005204/0.8082, allocations: 210.6 kB / 0.5222 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005761/0.8139, allocations: 2.54 MB / 0.5247 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.052e-05/0.814, allocations: 16 kB / 0.5247 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.418e-05/0.814, allocations: 4 kB / 0.5247 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.766e-05/0.814, allocations: 8.078 kB / 0.5247 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03195/0.8459, allocations: 5.134 MB / 0.5297 GB, free: 5.926 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/0.846, allocations: 0 / 0.5297 GB, free: 5.926 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/0.8471, allocations: 200.2 kB / 0.5299 GB, free: 5.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00259/0.8496, allocations: 0.7344 MB / 0.5306 GB, free: 4.965 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001418/0.8498, allocations: 35.98 kB / 0.5307 GB, free: 4.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2778/1.128, allocations: 16.82 MB / 0.5471 GB, free: 89.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/1.128, allocations: 7.969 kB / 0.5471 GB, free: 89.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00651/1.134, allocations: 3.706 MB / 0.5507 GB, free: 88.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/1.135, allocations: 394.8 kB / 0.5511 GB, free: 88.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003139/1.136, allocations: 39.62 kB / 0.5511 GB, free: 88.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/1.137, allocations: 108.8 kB / 0.5512 GB, free: 88.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003636/1.137, allocations: 147.5 kB / 0.5514 GB, free: 88.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/1.137, allocations: 41.53 kB / 0.5514 GB, free: 88.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001858/1.139, allocations: 1.271 MB / 0.5526 GB, free: 87.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.139, allocations: 3.938 kB / 0.5527 GB, free: 87.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002692/1.142, allocations: 0.6535 MB / 0.5533 GB, free: 87.49 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.0003828/1.142, allocations: 204.2 kB / 0.5535 GB, free: 87.37 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004444/1.147, allocations: 3.365 MB / 0.5568 GB, free: 85.42 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/1.147, allocations: 0 / 0.5568 GB, free: 85.42 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002356/1.149, allocations: 2.145 MB / 0.5589 GB, free: 83.47 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00316/1.152, allocations: 0.6049 MB / 0.5595 GB, free: 83 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/1.166, allocations: 5.763 MB / 0.5651 GB, free: 77.75 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001814/1.168, allocations: 1.734 MB / 0.5668 GB, free: 76.47 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00161/1.169, allocations: 483.5 kB / 0.5672 GB, free: 76.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003801/1.17, allocations: 127.4 kB / 0.5674 GB, free: 75.96 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/1.17, allocations: 4 kB / 0.5674 GB, free: 75.95 MB / 446.1 MB Notification: Performance of Templates: time 0.09982/1.269, allocations: 42.41 MB / 0.6088 GB, free: 34.21 MB / 446.1 MB " [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 -s cvode -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: 8.407549741998082]