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_ResistiveBraking.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.00659/0.00659, allocations: 107.9 kB / 21.97 MB, free: 5.184 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.001694/0.001694, allocations: 218.2 kB / 25.29 MB, free: 3.203 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.444/1.444, allocations: 230.6 MB / 259 MB, free: 8.051 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_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-beta.om_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-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [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.00205/0.00205, allocations: 71.88 kB / 379.8 MB, free: 2.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3332, allocations: 53.36 MB / 433.2 MB, free: 7.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01405/0.3473, allocations: 11.55 MB / 444.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007872/0.3552, allocations: 3.606 MB / 448.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002041/0.3572, allocations: 87.38 kB / 448.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002989/0.3602, allocations: 0.8931 MB / 449.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003097/0.3633, allocations: 0.9864 MB / 450.3 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.3644, allocations: 447.2 kB / 450.7 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0049/0.3693, allocations: 3.756 MB / 454.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002337/0.3716, allocations: 1.596 MB / 456.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002569/0.3742, allocations: 1.694 MB / 457.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003238/0.3774, allocations: 2.024 MB / 459.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006848/0.3781, allocations: 420 kB / 460.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001084/0.3792, allocations: 0.5037 MB / 460.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001281/0.3805, allocations: 1.215 MB / 461.9 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00261/0.3831, allocations: 1.937 MB / 463.9 MB, free: 8.156 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006718/0.3898, allocations: 5.566 MB / 469.4 MB, free: 2.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.3898, allocations: 3.938 kB / 469.4 MB, free: 2.566 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3898, allocations: 0 / 469.4 MB, free: 2.566 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001874/0.39, allocations: 4 kB / 469.4 MB, free: 2.562 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.009698/0.3997, allocations: 3.832 MB / 473.3 MB, free: 14.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.3998, allocations: 8.031 kB / 473.3 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001136/0.4009, allocations: 410.5 kB / 473.7 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004174/0.4051, allocations: 2.005 MB / 475.7 MB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/0.4052, allocations: 214.1 kB / 475.9 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004576/0.4057, allocations: 291.9 kB / 476.2 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007286/0.413, allocations: 3.853 MB / 480 MB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.716e-05/0.4131, allocations: 11.89 kB / 480.1 MB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002723/0.4133, allocations: 120 kB / 480.2 MB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001301/0.4135, allocations: 121.5 kB / 480.3 MB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005874/0.4193, allocations: 3.25 MB / 483.5 MB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02117/0.4405, allocations: 11.64 MB / 495.2 MB, free: 8.301 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002694/0.4432, allocations: 1.753 MB / 496.9 MB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00209/0.4453, allocations: 1.149 MB / 498.1 MB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002252/0.4455, allocations: 49.27 kB / 498.1 MB, free: 5.387 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.611e-05/0.4456, allocations: 51.81 kB / 498.2 MB, free: 5.324 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.056e-06/0.4456, allocations: 0 / 498.2 MB, free: 5.324 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01477/0.4603, allocations: 6.542 MB / 0.4929 GB, free: 14.74 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.4604, allocations: 64.72 kB / 0.493 GB, free: 14.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003568/0.464, allocations: 2.06 MB / 0.495 GB, free: 12.56 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002418/0.4642, allocations: 49.7 kB / 0.495 GB, free: 12.51 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001683/0.4659, allocations: 1.409 MB / 0.4964 GB, free: 11.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005642/0.4664, allocations: 0.5384 MB / 0.4969 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000595/0.467, allocations: 355.4 kB / 0.4973 GB, free: 10.19 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.4672, allocations: 305.1 kB / 0.4975 GB, free: 9.887 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.4686, allocations: 0.8627 MB / 0.4984 GB, free: 9.023 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001842/0.4705, allocations: 1.369 MB / 0.4997 GB, free: 7.449 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003603/0.4741, allocations: 2.322 MB / 0.502 GB, free: 4.922 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.668e-05/0.4741, allocations: 7.938 kB / 0.502 GB, free: 4.914 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006414/0.4805, allocations: 3.196 MB / 0.5051 GB, free: 1.676 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.48e-05/0.4805, allocations: 12 kB / 0.5051 GB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.868e-05/0.4806, allocations: 16 kB / 0.5052 GB, free: 1.648 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002423/0.483, allocations: 0.8522 MB / 0.506 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/0.4842, allocations: 343.4 kB / 0.5063 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01973/0.504, allocations: 19.46 MB / 0.5253 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001958/0.5059, allocations: 103.8 kB / 0.5254 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001903/0.5061, allocations: 72.05 kB / 0.5255 GB, free: 11.54 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.001919/0.508, allocations: 0.9429 MB / 0.5264 GB, free: 10.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005173/0.5086, allocations: 230.5 kB / 0.5266 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004597/0.5132, allocations: 2.534 MB / 0.5291 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/0.5132, allocations: 16 kB / 0.5291 GB, free: 7.758 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.53e-05/0.5132, allocations: 4 kB / 0.5291 GB, free: 7.754 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.766e-05/0.5132, allocations: 7.969 kB / 0.5291 GB, free: 7.746 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.5239, allocations: 5.761 MB / 0.5347 GB, free: 1.828 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.676e-05/0.5239, allocations: 8 kB / 0.5348 GB, free: 1.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008039/0.5247, allocations: 199.6 kB / 0.5349 GB, free: 1.625 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002016/0.5267, allocations: 0.7344 MB / 0.5357 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.5268, allocations: 35.98 kB / 0.5357 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2511/0.778, allocations: 17.13 MB / 0.5524 GB, free: 85.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.778, allocations: 7.75 kB / 0.5524 GB, free: 85.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005562/0.7835, allocations: 3.723 MB / 0.5561 GB, free: 84.12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/0.7847, allocations: 415.7 kB / 0.5565 GB, free: 84.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002708/0.785, allocations: 39.69 kB / 0.5565 GB, free: 84.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.786, allocations: 101.6 kB / 0.5566 GB, free: 83.99 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003955/0.7864, allocations: 145 kB / 0.5567 GB, free: 83.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.263e-05/0.7865, allocations: 42.95 kB / 0.5568 GB, free: 83.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001824/0.7883, allocations: 1.408 MB / 0.5582 GB, free: 83.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7883, allocations: 0 / 0.5582 GB, free: 83.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002255/0.7905, allocations: 0.6622 MB / 0.5588 GB, free: 83.35 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.0003535/0.7909, allocations: 205.2 kB / 0.559 GB, free: 83.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003909/0.7948, allocations: 3.355 MB / 0.5623 GB, free: 81.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.7948, allocations: 7.188 kB / 0.5623 GB, free: 81.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001995/0.7968, allocations: 2.148 MB / 0.5644 GB, free: 79.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002688/0.7995, allocations: 0.6837 MB / 0.5651 GB, free: 79.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007337/0.8068, allocations: 5.809 MB / 0.5707 GB, free: 74.31 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001381/0.8082, allocations: 2.257 MB / 0.5729 GB, free: 72.22 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004826/0.8087, allocations: 147.4 kB / 0.5731 GB, free: 72.07 MB / 446.1 MB Notification: Performance of SimCode: time 1.133e-06/0.8087, allocations: 2.953 kB / 0.5731 GB, free: 72.07 MB / 446.1 MB Notification: Performance of Templates: time 0.3978/1.206, allocations: 188.7 MB / 0.7573 GB, free: 179.1 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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: 17.15911832707934]