Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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=2000,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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001288/0.001288, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 66.94 kB / 306.9 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09751/0.09866, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01181/0.1105, allocations: 11.45 MB / 368.9 MB, free: 2.566 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1865/0.297, allocations: 3.575 MB / 372.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002101/0.2992, allocations: 72.86 kB / 372.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002829/0.302, allocations: 0.8342 MB / 373.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003357/0.3054, allocations: 0.9311 MB / 374.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001465/0.3069, allocations: 433 kB / 374.8 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005966/0.3129, allocations: 3.746 MB / 378.5 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004651/0.3176, allocations: 2.873 MB / 381.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0033/0.3209, allocations: 1.655 MB / 383 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004272/0.3252, allocations: 1.968 MB / 385 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001837/0.3271, allocations: 418.6 kB / 385.4 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003827/0.3309, allocations: 0.494 MB / 385.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002956/0.3339, allocations: 1.2 MB / 387.1 MB, free: 5.605 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008206/0.3421, allocations: 1.939 MB / 389 MB, free: 4.375 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007688/0.3499, allocations: 5.491 MB / 394.5 MB, free: 1.203 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.3499, allocations: 1.25 kB / 394.5 MB, free: 1.203 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.3499, allocations: 0 / 394.5 MB, free: 1.203 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002158/0.3501, allocations: 6.094 kB / 394.5 MB, free: 1.199 MB / 302.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.01137/0.3615, allocations: 3.813 MB / 398.4 MB, free: 14.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.3616, allocations: 8.438 kB / 398.4 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00152/0.3631, allocations: 398.6 kB / 398.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003759/0.3669, allocations: 1.979 MB / 400.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002028/0.3671, allocations: 220.3 kB / 401 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005155/0.3676, allocations: 284.6 kB / 401.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006538/0.3742, allocations: 3.862 MB / 405.1 MB, free: 8.996 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.569e-05/0.3743, allocations: 8 kB / 405.1 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002643/0.3746, allocations: 115.8 kB / 405.2 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001177/0.3747, allocations: 125.5 kB / 405.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005273/0.38, allocations: 3.254 MB / 408.6 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01974/0.3997, allocations: 11.9 MB / 420.5 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00316/0.4029, allocations: 3.654 MB / 424.1 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001993/0.4049, allocations: 1.252 MB / 425.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002483/0.4052, allocations: 118.4 kB / 425.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.618e-05/0.4053, allocations: 55.86 kB / 425.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 3.386e-06/0.4053, allocations: 0 / 425.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.0147/0.42, allocations: 7.335 MB / 432.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.4201, allocations: 72.66 kB / 433 MB, free: 12.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00344/0.4235, allocations: 2.064 MB / 435 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003138/0.4239, allocations: 53.7 kB / 435.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009817/0.4248, allocations: 1.365 MB / 436.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006318/0.4255, allocations: 0.5174 MB / 437 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005888/0.4261, allocations: 351.2 kB / 437.3 MB, free: 7.797 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.4262, allocations: 309.1 kB / 437.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/0.4276, allocations: 0.8705 MB / 438.5 MB, free: 6.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.4292, allocations: 1.359 MB / 439.8 MB, free: 5.055 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002972/0.4322, allocations: 2.334 MB / 442.2 MB, free: 2.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.346e-05/0.4322, allocations: 8 kB / 442.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005781/0.438, allocations: 3.266 MB / 445.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.438, allocations: 12.5 kB / 445.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.663e-05/0.4381, allocations: 23.94 kB / 445.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002301/0.4404, allocations: 0.8423 MB / 446.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.4416, allocations: 343.4 kB / 446.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01682/0.4585, allocations: 20.59 MB / 467.3 MB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001933/0.4604, allocations: 95.89 kB / 467.3 MB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000168/0.4606, allocations: 76 kB / 467.4 MB, free: 7.648 MB / 382.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.001674/0.4623, allocations: 0.9415 MB / 468.4 MB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004284/0.4627, allocations: 217.4 kB / 468.6 MB, free: 6.484 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004205/0.467, allocations: 2.629 MB / 471.2 MB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.467, allocations: 16 kB / 471.2 MB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.467, allocations: 4 kB / 471.2 MB, free: 3.777 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/0.467, allocations: 11.91 kB / 471.2 MB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00996/0.477, allocations: 5.909 MB / 477.1 MB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.477, allocations: 4 kB / 477.1 MB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007747/0.4778, allocations: 199.7 kB / 477.3 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001855/0.4797, allocations: 0.7463 MB / 478.1 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-05/0.4798, allocations: 35.98 kB / 478.1 MB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01412/0.4939, allocations: 18.16 MB / 496.3 MB, free: 9.141 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.494, allocations: 4.109 kB / 496.3 MB, free: 9.137 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005686/0.4996, allocations: 3.804 MB / 0.4884 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001518/0.5012, allocations: 482.3 kB / 0.4888 GB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000344/0.5015, allocations: 35.94 kB / 0.4889 GB, free: 4.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/0.5027, allocations: 103.9 kB / 0.489 GB, free: 4.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000346/0.503, allocations: 145 kB / 0.4891 GB, free: 4.449 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.229e-05/0.5031, allocations: 44 kB / 0.4891 GB, free: 4.406 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002187/0.5053, allocations: 1.404 MB / 0.4905 GB, free: 2.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5053, allocations: 0 / 0.4905 GB, free: 2.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003016/0.5083, allocations: 0.6562 MB / 0.4912 GB, free: 2.324 MB / 414.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.0005164/0.5089, allocations: 202.9 kB / 0.4914 GB, free: 2.117 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006827/0.5157, allocations: 4.256 MB / 0.4955 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.397e-06/0.5158, allocations: 0 / 0.4955 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00269/0.5185, allocations: 2.219 MB / 0.4977 GB, free: 11.38 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003733/0.5222, allocations: 0.6748 MB / 0.4983 GB, free: 10.71 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00976/0.532, allocations: 5.732 MB / 0.5039 GB, free: 4.914 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002028/0.5341, allocations: 2.295 MB / 0.5062 GB, free: 2.59 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001844/0.5359, allocations: 0.491 MB / 0.5067 GB, free: 2.094 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003495/0.5363, allocations: 139.4 kB / 0.5068 GB, free: 1.957 MB / 430.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5363, allocations: 0 / 0.5068 GB, free: 1.957 MB / 430.1 MB Notification: Performance of Templates: time 0.2535/0.7898, allocations: 38.14 MB / 0.544 GB, free: 136.2 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches