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.001676/0.001676, 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.002052/0.002052, 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 1.541/1.541, allocations: 230.6 MB / 258.2 MB, free: 7.789 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.001621/0.001621, allocations: 51.92 kB / 379 MB, free: 2.426 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2624, allocations: 53.36 MB / 432.4 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01323/0.2756, allocations: 10.05 MB / 442.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007166/0.2828, allocations: 3.4 MB / 445.8 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001719/0.2845, allocations: 87.44 kB / 445.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0023/0.2868, allocations: 0.8229 MB / 446.7 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002571/0.2893, allocations: 0.9825 MB / 447.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008763/0.2902, allocations: 447.3 kB / 448.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003928/0.2942, allocations: 3.748 MB / 451.9 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002122/0.2963, allocations: 1.6 MB / 453.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002179/0.2985, allocations: 1.702 MB / 455.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002505/0.301, allocations: 2.016 MB / 457.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005708/0.3015, allocations: 420 kB / 457.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009643/0.3025, allocations: 0.4998 MB / 458.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001165/0.3037, allocations: 1.208 MB / 459.3 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001802/0.3055, allocations: 1.579 MB / 460.9 MB, free: 9.984 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005755/0.3112, allocations: 5.601 MB / 466.5 MB, free: 4.363 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3112, allocations: 0 / 466.5 MB, free: 4.363 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3112, allocations: 0 / 466.5 MB, free: 4.363 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001086/0.3113, allocations: 4 kB / 466.5 MB, free: 4.359 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.008564/0.3199, allocations: 3.836 MB / 470.3 MB, free: 480 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.3199, allocations: 8.031 kB / 470.3 MB, free: 472 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001321/0.3213, allocations: 414.6 kB / 470.7 MB, free: 56 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004319/0.3256, allocations: 2.001 MB / 472.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001832/0.3258, allocations: 214.1 kB / 473 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004497/0.3262, allocations: 287.9 kB / 473.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007401/0.3336, allocations: 4.161 MB / 477.4 MB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.164e-05/0.3337, allocations: 15.94 kB / 477.4 MB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002837/0.334, allocations: 120 kB / 477.5 MB, free: 9.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001452/0.3341, allocations: 125.5 kB / 477.6 MB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00592/0.3401, allocations: 3.246 MB / 480.9 MB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01952/0.3596, allocations: 10.35 MB / 491.2 MB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004011/0.3636, allocations: 1.734 MB / 493 MB, free: 9.328 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00313/0.3667, allocations: 1.149 MB / 494.1 MB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002712/0.367, allocations: 45.28 kB / 494.2 MB, free: 8.133 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.98e-05/0.3671, allocations: 51.88 kB / 494.2 MB, free: 8.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 5.07e-06/0.3671, allocations: 0 / 494.2 MB, free: 8.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.02112/0.3882, allocations: 6.504 MB / 0.489 GB, free: 1.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.419e-05/0.3883, allocations: 72.7 kB / 0.4891 GB, free: 1.438 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004307/0.3926, allocations: 1.896 MB / 0.4909 GB, free: 15.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003032/0.3929, allocations: 53.7 kB / 0.491 GB, free: 15.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001596/0.3945, allocations: 1.428 MB / 0.4924 GB, free: 14.04 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008546/0.3953, allocations: 0.5268 MB / 0.4929 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008602/0.3962, allocations: 351.4 kB / 0.4932 GB, free: 13.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.3964, allocations: 301.1 kB / 0.4935 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002153/0.3985, allocations: 0.8705 MB / 0.4943 GB, free: 11.99 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002589/0.4011, allocations: 1.373 MB / 0.4957 GB, free: 10.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004598/0.4057, allocations: 2.322 MB / 0.498 GB, free: 7.883 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.4057, allocations: 8 kB / 0.498 GB, free: 7.875 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006231/0.4119, allocations: 3.176 MB / 0.5011 GB, free: 4.656 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.412, allocations: 12 kB / 0.5011 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.8e-05/0.412, allocations: 16 kB / 0.5011 GB, free: 4.629 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002574/0.4146, allocations: 0.8446 MB / 0.5019 GB, free: 3.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.4159, allocations: 343.4 kB / 0.5022 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02049/0.4364, allocations: 19.12 MB / 0.5209 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/0.438, allocations: 99.88 kB / 0.521 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/0.4382, allocations: 76 kB / 0.5211 GB, free: 15 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.001835/0.44, allocations: 0.9366 MB / 0.522 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000491/0.4405, allocations: 210.7 kB / 0.5222 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004837/0.4454, allocations: 2.532 MB / 0.5247 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.4454, allocations: 16 kB / 0.5247 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.4454, allocations: 4 kB / 0.5247 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.4454, allocations: 8.078 kB / 0.5247 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01034/0.4557, allocations: 5.126 MB / 0.5297 GB, free: 5.969 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/0.4558, allocations: 11.94 kB / 0.5297 GB, free: 5.957 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008736/0.4566, allocations: 203.7 kB / 0.5299 GB, free: 5.758 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002063/0.4587, allocations: 0.7307 MB / 0.5306 GB, free: 4.996 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/0.4588, allocations: 35.98 kB / 0.5307 GB, free: 4.961 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2149/0.6737, allocations: 16.81 MB / 0.5471 GB, free: 89.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.6737, allocations: 4.125 kB / 0.5471 GB, free: 89.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005122/0.6789, allocations: 3.713 MB / 0.5507 GB, free: 88.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/0.6799, allocations: 401.4 kB / 0.5511 GB, free: 88.16 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000244/0.6801, allocations: 38.58 kB / 0.5511 GB, free: 88.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009647/0.6811, allocations: 100.3 kB / 0.5512 GB, free: 88.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000286/0.6814, allocations: 145.7 kB / 0.5514 GB, free: 88.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.411e-05/0.6815, allocations: 49.31 kB / 0.5514 GB, free: 88.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001387/0.6828, allocations: 1.268 MB / 0.5526 GB, free: 87.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6828, allocations: 3.938 kB / 0.5526 GB, free: 87.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00191/0.6848, allocations: 0.6539 MB / 0.5533 GB, free: 87.56 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.0003203/0.6851, allocations: 203.8 kB / 0.5535 GB, free: 87.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003475/0.6885, allocations: 3.367 MB / 0.5568 GB, free: 85.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.6885, allocations: 0 / 0.5568 GB, free: 85.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001856/0.6904, allocations: 2.148 MB / 0.5589 GB, free: 83.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002213/0.6926, allocations: 0.6022 MB / 0.5595 GB, free: 83.06 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006556/0.6992, allocations: 5.762 MB / 0.5651 GB, free: 77.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001356/0.7005, allocations: 1.738 MB / 0.5668 GB, free: 76.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001064/0.7016, allocations: 483.3 kB / 0.5672 GB, free: 76.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002903/0.7019, allocations: 123.4 kB / 0.5674 GB, free: 76.03 MB / 446.1 MB Notification: Performance of SimCode: time 7.52e-07/0.7019, allocations: 0 / 0.5674 GB, free: 76.03 MB / 446.1 MB Notification: Performance of Templates: time 0.04811/0.75, allocations: 42.41 MB / 0.6088 GB, free: 34.29 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 gbode -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: 5.984758790000342]