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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001723/0.001723, allocations: 108.7 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001945/0.001945, allocations: 207.9 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.529/1.529, allocations: 230.4 MB / 251.1 MB, free: 8.504 MB / 206.1 MB 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.002268/0.002268, allocations: 72.06 kB / 369 MB, free: 6.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.282, allocations: 53.32 MB / 422.3 MB, free: 7.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01369/0.2957, allocations: 11.5 MB / 433.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006859/0.3026, allocations: 3.606 MB / 437.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001442/0.304, allocations: 67.69 kB / 437.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002278/0.3063, allocations: 0.9008 MB / 438.4 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002694/0.309, allocations: 0.9747 MB / 439.3 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001042/0.31, allocations: 451.2 kB / 439.8 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004673/0.3147, allocations: 3.744 MB / 443.5 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00279/0.3175, allocations: 2.096 MB / 445.6 MB, free: 380 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002614/0.3201, allocations: 1.67 MB / 447.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003268/0.3234, allocations: 2.016 MB / 449.3 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008125/0.3242, allocations: 416 kB / 449.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001165/0.3253, allocations: 0.5076 MB / 450.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001213/0.3266, allocations: 1.211 MB / 451.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002386/0.3289, allocations: 1.941 MB / 453.4 MB, free: 8.594 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006732/0.3357, allocations: 5.566 MB / 458.9 MB, free: 3.008 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.3357, allocations: 4 kB / 458.9 MB, free: 3.004 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3357, allocations: 0 / 458.9 MB, free: 3.004 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001317/0.3358, allocations: 0 / 458.9 MB, free: 3.004 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.008599/0.3444, allocations: 3.907 MB / 462.8 MB, free: 15.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.3444, allocations: 12.02 kB / 462.9 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001025/0.3455, allocations: 414.5 kB / 463.3 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003886/0.3494, allocations: 2.069 MB / 465.3 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001761/0.3495, allocations: 218.1 kB / 465.5 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004453/0.35, allocations: 283.9 kB / 465.8 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007268/0.3572, allocations: 3.857 MB / 469.7 MB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.768e-05/0.3573, allocations: 15.89 kB / 469.7 MB, free: 8.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002756/0.3576, allocations: 116 kB / 469.8 MB, free: 7.918 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001278/0.3577, allocations: 117.5 kB / 469.9 MB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005942/0.3637, allocations: 3.261 MB / 473.2 MB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01889/0.3826, allocations: 11.81 MB / 485 MB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003537/0.3861, allocations: 3.539 MB / 488.5 MB, free: 4.449 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002095/0.3882, allocations: 1.153 MB / 489.7 MB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002542/0.3884, allocations: 126.4 kB / 489.8 MB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.706e-05/0.3885, allocations: 53.72 kB / 489.9 MB, free: 3.098 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 2.505e-06/0.3885, allocations: 0 / 489.9 MB, free: 3.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01496/0.4035, allocations: 7.368 MB / 497.2 MB, free: 11.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.495e-05/0.4035, allocations: 68.66 kB / 497.3 MB, free: 11.4 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003238/0.4067, allocations: 2.068 MB / 499.4 MB, free: 9.289 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001708/0.4069, allocations: 53.7 kB / 499.4 MB, free: 9.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001134/0.408, allocations: 1.401 MB / 0.4891 GB, free: 7.816 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005756/0.4086, allocations: 0.5423 MB / 0.4896 GB, free: 7.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005617/0.4092, allocations: 351.4 kB / 0.4899 GB, free: 6.918 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.4093, allocations: 301.1 kB / 0.4902 GB, free: 6.621 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/0.4107, allocations: 0.8705 MB / 0.4911 GB, free: 5.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/0.4126, allocations: 1.361 MB / 0.4924 GB, free: 4.184 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003281/0.4159, allocations: 2.326 MB / 0.4947 GB, free: 1.648 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-05/0.4159, allocations: 11.94 kB / 0.4947 GB, free: 1.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006196/0.4221, allocations: 3.263 MB / 0.4979 GB, free: 14.31 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.754e-05/0.4221, allocations: 12 kB / 0.4979 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-05/0.4222, allocations: 19.98 kB / 0.4979 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002457/0.4246, allocations: 0.8483 MB / 0.4987 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.4259, allocations: 343.4 kB / 0.4991 GB, free: 13.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02138/0.4473, allocations: 20.58 MB / 0.5192 GB, free: 6.941 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001711/0.449, allocations: 95.88 kB / 0.5193 GB, free: 6.848 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/0.4491, allocations: 84.06 kB / 0.5193 GB, free: 6.766 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.00162/0.4508, allocations: 0.9344 MB / 0.5203 GB, free: 5.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000421/0.4512, allocations: 230.5 kB / 0.5205 GB, free: 5.594 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004543/0.4557, allocations: 2.617 MB / 0.523 GB, free: 2.91 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/0.4557, allocations: 16 kB / 0.523 GB, free: 2.895 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/0.4557, allocations: 8 kB / 0.523 GB, free: 2.887 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/0.4558, allocations: 7.969 kB / 0.5231 GB, free: 2.879 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009994/0.4658, allocations: 5.863 MB / 0.5288 GB, free: 12.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.4658, allocations: 7.938 kB / 0.5288 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007852/0.4666, allocations: 195.7 kB / 0.529 GB, free: 12.63 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00194/0.4685, allocations: 0.7307 MB / 0.5297 GB, free: 11.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.622e-05/0.4686, allocations: 35.98 kB / 0.5297 GB, free: 11.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2931/0.7617, allocations: 18.16 MB / 0.5475 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.7617, allocations: 7.594 kB / 0.5475 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005302/0.767, allocations: 3.805 MB / 0.5512 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/0.7682, allocations: 492.2 kB / 0.5517 GB, free: 106.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002938/0.7684, allocations: 35.98 kB / 0.5517 GB, free: 106.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.7695, allocations: 104.5 kB / 0.5518 GB, free: 106.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003505/0.7698, allocations: 144.8 kB / 0.5519 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.251e-05/0.7699, allocations: 45.3 kB / 0.552 GB, free: 106.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001777/0.7717, allocations: 1.402 MB / 0.5533 GB, free: 105.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.7717, allocations: 0 / 0.5533 GB, free: 105.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002217/0.7739, allocations: 0.6553 MB / 0.554 GB, free: 105.7 MB / 462.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.0003409/0.7743, allocations: 207 kB / 0.5542 GB, free: 105.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003864/0.7781, allocations: 3.374 MB / 0.5575 GB, free: 103.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.7781, allocations: 3.125 kB / 0.5575 GB, free: 103.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002072/0.7802, allocations: 2.138 MB / 0.5596 GB, free: 102.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002784/0.783, allocations: 0.6871 MB / 0.5602 GB, free: 102 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007653/0.7906, allocations: 5.801 MB / 0.5659 GB, free: 98.04 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001611/0.7922, allocations: 2.29 MB / 0.5681 GB, free: 96.21 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00133/0.7936, allocations: 0.4925 MB / 0.5686 GB, free: 95.85 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003701/0.7939, allocations: 135.4 kB / 0.5687 GB, free: 95.71 MB / 462.1 MB Notification: Performance of SimCode: time 9.61e-07/0.7939, allocations: 0 / 0.5687 GB, free: 95.71 MB / 462.1 MB Notification: Performance of Templates: time 0.0531/0.847, allocations: 37.46 MB / 0.6053 GB, free: 59.2 MB / 462.1 MB 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] Reference file matches