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.001325/0.001325, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001408/0.001408, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.562/1.562, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001554/0.001554, allocations: 51.91 kB / 373.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1084, allocations: 53.33 MB / 426.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.2274/0.3358, allocations: 11.5 MB / 438.3 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006801/0.3426, allocations: 3.589 MB / 441.9 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001615/0.3442, allocations: 89.91 kB / 442 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002112/0.3463, allocations: 0.896 MB / 442.9 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003077/0.3494, allocations: 0.9802 MB / 443.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.3506, allocations: 443.9 kB / 444.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005178/0.3558, allocations: 3.761 MB / 448.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003224/0.359, allocations: 2.096 MB / 450.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003504/0.3625, allocations: 1.696 MB / 451.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004405/0.3669, allocations: 2.019 MB / 453.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001085/0.368, allocations: 419.2 kB / 454.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001693/0.3697, allocations: 0.5072 MB / 454.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001519/0.3712, allocations: 1.196 MB / 456 MB, free: 12.44 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003771/0.375, allocations: 1.95 MB / 457.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007823/0.3828, allocations: 5.569 MB / 463.5 MB, free: 7.629 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3828, allocations: 0 / 463.5 MB, free: 7.629 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3828, allocations: 1.062 kB / 463.5 MB, free: 7.629 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002095/0.383, allocations: 0 / 463.5 MB, free: 7.629 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.01336/0.3964, allocations: 3.909 MB / 467.4 MB, free: 4.961 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.682e-05/0.3965, allocations: 8.719 kB / 467.4 MB, free: 4.961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001918/0.3984, allocations: 406.4 kB / 467.8 MB, free: 4.758 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004786/0.4032, allocations: 2.077 MB / 469.9 MB, free: 3.324 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002514/0.4034, allocations: 213.3 kB / 470.1 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005368/0.404, allocations: 286.4 kB / 470.4 MB, free: 3.129 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00732/0.4113, allocations: 3.852 MB / 474.2 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.904e-05/0.4114, allocations: 19.8 kB / 474.3 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002993/0.4117, allocations: 118.5 kB / 474.4 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001516/0.4118, allocations: 126.8 kB / 474.5 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005855/0.4177, allocations: 3.25 MB / 477.8 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0206/0.4383, allocations: 11.8 MB / 489.6 MB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003732/0.442, allocations: 3.554 MB / 493.1 MB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002243/0.4442, allocations: 1.158 MB / 494.3 MB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002776/0.4445, allocations: 130.4 kB / 494.4 MB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.509e-05/0.4446, allocations: 51.81 kB / 494.4 MB, free: 11.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.186e-06/0.4446, allocations: 4 kB / 494.4 MB, free: 11.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01617/0.4607, allocations: 7.349 MB / 0.49 GB, free: 4.359 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/0.4608, allocations: 72.72 kB / 0.4901 GB, free: 4.277 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003732/0.4645, allocations: 2.06 MB / 0.4921 GB, free: 2.176 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002518/0.4648, allocations: 53.7 kB / 0.4922 GB, free: 2.117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001272/0.466, allocations: 1.405 MB / 0.4935 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005983/0.4666, allocations: 0.5345 MB / 0.4941 GB, free: 164 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006417/0.4673, allocations: 347.4 kB / 0.4944 GB, free: 15.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.4674, allocations: 305.1 kB / 0.4947 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001528/0.469, allocations: 0.8744 MB / 0.4955 GB, free: 14.64 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001909/0.4709, allocations: 1.365 MB / 0.4969 GB, free: 13.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003397/0.4743, allocations: 2.33 MB / 0.4991 GB, free: 10.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.457e-06/0.4743, allocations: 8 kB / 0.4992 GB, free: 10.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006448/0.4807, allocations: 3.27 MB / 0.5024 GB, free: 7.188 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/0.4808, allocations: 8 kB / 0.5024 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.803e-05/0.4808, allocations: 16.5 kB / 0.5024 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002625/0.4834, allocations: 0.8503 MB / 0.5032 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.4847, allocations: 343.4 kB / 0.5035 GB, free: 5.949 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02064/0.5054, allocations: 20.59 MB / 0.5236 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001992/0.5074, allocations: 99.83 kB / 0.5237 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001738/0.5076, allocations: 80.09 kB / 0.5238 GB, free: 15.67 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.001823/0.5094, allocations: 0.9344 MB / 0.5247 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004897/0.5099, allocations: 230.5 kB / 0.5249 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004816/0.5147, allocations: 2.613 MB / 0.5275 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.5147, allocations: 20 kB / 0.5275 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/0.5147, allocations: 8 kB / 0.5275 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/0.5147, allocations: 7.969 kB / 0.5275 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/0.5253, allocations: 5.855 MB / 0.5332 GB, free: 5.742 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.5254, allocations: 4 kB / 0.5332 GB, free: 5.738 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008337/0.5262, allocations: 196.2 kB / 0.5334 GB, free: 5.547 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002048/0.5282, allocations: 0.7426 MB / 0.5342 GB, free: 4.773 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.5283, allocations: 32 kB / 0.5342 GB, free: 4.742 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01772/0.5461, allocations: 18.17 MB / 0.5519 GB, free: 1.184 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.804e-06/0.5461, allocations: 7.938 kB / 0.5519 GB, free: 1.176 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006889/0.553, allocations: 3.8 MB / 0.5557 GB, free: 13.26 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001632/0.5546, allocations: 495.7 kB / 0.5561 GB, free: 12.76 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000376/0.555, allocations: 39.92 kB / 0.5562 GB, free: 12.72 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/0.5561, allocations: 111.8 kB / 0.5563 GB, free: 12.61 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003809/0.5565, allocations: 133 kB / 0.5564 GB, free: 12.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.5566, allocations: 51.92 kB / 0.5564 GB, free: 12.43 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002416/0.559, allocations: 1.4 MB / 0.5578 GB, free: 11.01 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.559, allocations: 4 kB / 0.5578 GB, free: 11 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003354/0.5624, allocations: 0.6601 MB / 0.5585 GB, free: 10.34 MB / 478.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.0005058/0.5629, allocations: 205.2 kB / 0.5587 GB, free: 10.13 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005376/0.5683, allocations: 3.358 MB / 0.5619 GB, free: 6.633 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.5683, allocations: 0 / 0.5619 GB, free: 6.633 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002979/0.5712, allocations: 2.158 MB / 0.564 GB, free: 4.344 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003665/0.5749, allocations: 0.6825 MB / 0.5647 GB, free: 3.668 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/0.5852, allocations: 5.758 MB / 0.5703 GB, free: 13.84 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002409/0.5876, allocations: 2.288 MB / 0.5726 GB, free: 11.52 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001684/0.5893, allocations: 0.5027 MB / 0.5731 GB, free: 11.01 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004003/0.5897, allocations: 131.4 kB / 0.5732 GB, free: 10.88 MB / 494.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5897, allocations: 0 / 0.5732 GB, free: 10.88 MB / 494.1 MB Notification: Performance of Templates: time 0.07159/0.6613, allocations: 37.18 MB / 0.6095 GB, free: 6.125 MB / 0.5137 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/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_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.475300710648298]