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.00133/0.00133, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001519/0.001519, allocations: 211.9 kB / 24.54 MB, free: 4.02 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.563/1.563, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.002127/0.002127, allocations: 60.77 kB / 379.1 MB, free: 2.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3014, allocations: 53.38 MB / 432.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01491/0.3163, allocations: 11.54 MB / 444 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007709/0.324, allocations: 3.598 MB / 447.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002221/0.3263, allocations: 87.38 kB / 447.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002943/0.3292, allocations: 0.8969 MB / 448.6 MB, free: 6.742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003723/0.3329, allocations: 0.9786 MB / 449.5 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001574/0.3345, allocations: 447.2 kB / 450 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005812/0.3403, allocations: 3.759 MB / 453.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002754/0.3431, allocations: 1.6 MB / 455.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003097/0.3462, allocations: 1.694 MB / 457 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003948/0.3501, allocations: 2.02 MB / 459.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008692/0.351, allocations: 420 kB / 459.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001431/0.3524, allocations: 0.5037 MB / 460 MB, free: 11.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001486/0.3539, allocations: 1.215 MB / 461.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003286/0.3572, allocations: 1.941 MB / 463.1 MB, free: 8.074 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007324/0.3645, allocations: 5.57 MB / 468.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3645, allocations: 0 / 468.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3645, allocations: 0 / 468.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001393/0.3647, allocations: 0 / 468.7 MB, free: 2.484 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.009694/0.3743, allocations: 3.84 MB / 472.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.3744, allocations: 8.031 kB / 472.5 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001155/0.3756, allocations: 410.6 kB / 472.9 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004448/0.38, allocations: 2.001 MB / 474.9 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/0.3802, allocations: 218.1 kB / 475.2 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005214/0.3807, allocations: 287.9 kB / 475.4 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007134/0.3879, allocations: 3.849 MB / 479.3 MB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.397e-05/0.3879, allocations: 15.89 kB / 479.3 MB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002733/0.3882, allocations: 116 kB / 479.4 MB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001452/0.3883, allocations: 125.5 kB / 479.5 MB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006145/0.3945, allocations: 3.254 MB / 482.8 MB, free: 4.184 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02241/0.4169, allocations: 11.64 MB / 494.4 MB, free: 8.219 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003042/0.4199, allocations: 1.739 MB / 496.2 MB, free: 6.512 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00226/0.4222, allocations: 1.153 MB / 497.3 MB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002334/0.4224, allocations: 49.22 kB / 497.4 MB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.157e-05/0.4225, allocations: 47.88 kB / 497.4 MB, free: 5.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.316e-06/0.4225, allocations: 0 / 497.4 MB, free: 5.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01581/0.4383, allocations: 6.537 MB / 0.4921 GB, free: 14.67 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.956e-05/0.4384, allocations: 68.72 kB / 0.4922 GB, free: 14.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003612/0.442, allocations: 2.064 MB / 0.4942 GB, free: 12.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000229/0.4422, allocations: 49.7 kB / 0.4943 GB, free: 12.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001278/0.4435, allocations: 1.405 MB / 0.4956 GB, free: 11.01 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005616/0.4441, allocations: 0.5462 MB / 0.4962 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005671/0.4446, allocations: 347.4 kB / 0.4965 GB, free: 10.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.4447, allocations: 305.1 kB / 0.4968 GB, free: 9.812 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/0.4462, allocations: 0.8627 MB / 0.4976 GB, free: 8.949 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001844/0.448, allocations: 1.369 MB / 0.499 GB, free: 7.375 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00343/0.4515, allocations: 2.326 MB / 0.5013 GB, free: 4.844 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.248e-05/0.4515, allocations: 7.938 kB / 0.5013 GB, free: 4.836 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006267/0.4578, allocations: 3.192 MB / 0.5044 GB, free: 1.602 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.649e-05/0.4578, allocations: 15.94 kB / 0.5044 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.86e-05/0.4578, allocations: 16 kB / 0.5044 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002783/0.4606, allocations: 0.8563 MB / 0.5052 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001781/0.4624, allocations: 339.4 kB / 0.5056 GB, free: 356 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02146/0.4839, allocations: 19.47 MB / 0.5246 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/0.4858, allocations: 95.95 kB / 0.5247 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003931/0.4862, allocations: 75.98 kB / 0.5247 GB, free: 11.45 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.002163/0.4884, allocations: 0.9395 MB / 0.5257 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007257/0.4891, allocations: 230.5 kB / 0.5259 GB, free: 10.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005238/0.4943, allocations: 2.538 MB / 0.5284 GB, free: 7.691 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.788e-05/0.4943, allocations: 16 kB / 0.5284 GB, free: 7.676 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-05/0.4944, allocations: 4 kB / 0.5284 GB, free: 7.672 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.668e-05/0.4944, allocations: 7.969 kB / 0.5284 GB, free: 7.664 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01219/0.5066, allocations: 5.761 MB / 0.534 GB, free: 1.746 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.5066, allocations: 7.938 kB / 0.534 GB, free: 1.738 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008221/0.5074, allocations: 191.7 kB / 0.5342 GB, free: 1.551 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002126/0.5095, allocations: 0.7386 MB / 0.5349 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.5097, allocations: 35.98 kB / 0.535 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2625/0.7722, allocations: 17.13 MB / 0.5517 GB, free: 85.56 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.7722, allocations: 11.78 kB / 0.5517 GB, free: 85.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005209/0.7774, allocations: 3.72 MB / 0.5553 GB, free: 84.04 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/0.7785, allocations: 414.8 kB / 0.5557 GB, free: 83.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002717/0.7788, allocations: 39.52 kB / 0.5558 GB, free: 83.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.7798, allocations: 107.2 kB / 0.5559 GB, free: 83.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003691/0.7801, allocations: 142 kB / 0.556 GB, free: 83.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.802e-05/0.7802, allocations: 49.59 kB / 0.556 GB, free: 83.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001885/0.7821, allocations: 1.41 MB / 0.5574 GB, free: 83.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7821, allocations: 0.5938 kB / 0.5574 GB, free: 83.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002189/0.7843, allocations: 0.6624 MB / 0.5581 GB, free: 83.27 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.0003833/0.7847, allocations: 198 kB / 0.5583 GB, free: 83.15 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003859/0.7885, allocations: 3.365 MB / 0.5615 GB, free: 81.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.7886, allocations: 0 / 0.5615 GB, free: 81.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00208/0.7906, allocations: 2.146 MB / 0.5636 GB, free: 79.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00296/0.7936, allocations: 0.6835 MB / 0.5643 GB, free: 79.47 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008255/0.8019, allocations: 5.801 MB / 0.57 GB, free: 74.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001517/0.8034, allocations: 2.298 MB / 0.5722 GB, free: 72.01 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001464/0.8048, allocations: 0.491 MB / 0.5727 GB, free: 71.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/0.8052, allocations: 131.4 kB / 0.5728 GB, free: 71.39 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.8052, allocations: 0 / 0.5728 GB, free: 71.39 MB / 446.1 MB Notification: Performance of Templates: time 0.05578/0.861, allocations: 38.33 MB / 0.6103 GB, free: 33.65 MB / 446.1 MB " [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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/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: 6.622640900313854]