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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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=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_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=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_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001281/0.001281, allocations: 115.5 kB / 18.45 MB, free: 4.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001324, allocations: 210.8 kB / 19.41 MB, free: 3.676 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.406/1.406, allocations: 227.7 MB / 247.9 MB, free: 10.19 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.001879/0.001879, allocations: 67.89 kB / 359.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2404, allocations: 50.54 MB / 410.2 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01352/0.254, allocations: 11.48 MB / 421.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006785/0.2607, allocations: 3.598 MB / 425.3 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001261/0.262, allocations: 67.75 kB / 425.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002071/0.2641, allocations: 0.9008 MB / 426.3 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002365/0.2664, allocations: 0.9786 MB / 427.2 MB, free: 312 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009084/0.2674, allocations: 439.4 kB / 427.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004396/0.2718, allocations: 3.752 MB / 431.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00276/0.2745, allocations: 2.092 MB / 433.5 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002314/0.2768, allocations: 1.663 MB / 435.2 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002804/0.2796, allocations: 1.969 MB / 437.2 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006816/0.2803, allocations: 427.9 kB / 437.6 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00102/0.2813, allocations: 0.496 MB / 438.1 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001209/0.2825, allocations: 1.204 MB / 439.3 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002352/0.2849, allocations: 1.941 MB / 441.2 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006673/0.2916, allocations: 5.566 MB / 446.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2916, allocations: 4 kB / 446.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2916, allocations: 0 / 446.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000142/0.2917, allocations: 0 / 446.8 MB, free: 12.64 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.008129/0.2998, allocations: 3.911 MB / 450.7 MB, free: 8.656 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.2999, allocations: 11.97 kB / 450.7 MB, free: 8.645 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009845/0.3009, allocations: 410.6 kB / 451.1 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003834/0.3047, allocations: 2.069 MB / 453.2 MB, free: 6.121 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001889/0.3049, allocations: 218.1 kB / 453.4 MB, free: 5.906 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004744/0.3054, allocations: 283.9 kB / 453.7 MB, free: 5.629 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006563/0.3119, allocations: 3.861 MB / 457.5 MB, free: 1.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.453e-05/0.312, allocations: 7.953 kB / 457.5 MB, free: 1.672 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002732/0.3123, allocations: 124 kB / 457.7 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001313/0.3124, allocations: 121.5 kB / 457.8 MB, free: 1.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005574/0.318, allocations: 3.25 MB / 461 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01876/0.3367, allocations: 11.82 MB / 472.8 MB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003504/0.3402, allocations: 3.546 MB / 476.4 MB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002123/0.3424, allocations: 1.149 MB / 477.5 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002518/0.3426, allocations: 130.4 kB / 477.7 MB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.351e-05/0.3427, allocations: 47.88 kB / 477.7 MB, free: 12.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 2.695e-06/0.3427, allocations: 0 / 477.7 MB, free: 12.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01451/0.3572, allocations: 7.364 MB / 485.1 MB, free: 5.113 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/0.3572, allocations: 64.72 kB / 485.1 MB, free: 5.039 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003118/0.3603, allocations: 2.068 MB / 487.2 MB, free: 2.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001465/0.3605, allocations: 53.7 kB / 487.3 MB, free: 2.871 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001166/0.3616, allocations: 1.401 MB / 488.7 MB, free: 1.457 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005355/0.3622, allocations: 0.5423 MB / 489.2 MB, free: 0.9102 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005569/0.3627, allocations: 347.4 kB / 489.5 MB, free: 0.5625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3629, allocations: 309.1 kB / 489.8 MB, free: 264 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001425/0.3643, allocations: 0.8744 MB / 490.7 MB, free: 15.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001821/0.3661, allocations: 1.365 MB / 492.1 MB, free: 13.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003263/0.3694, allocations: 2.326 MB / 494.4 MB, free: 11.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.3694, allocations: 8 kB / 494.4 MB, free: 11.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00582/0.3752, allocations: 3.263 MB / 497.7 MB, free: 7.945 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.3752, allocations: 12 kB / 497.7 MB, free: 7.934 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.96e-05/0.3753, allocations: 16 kB / 497.7 MB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002394/0.3777, allocations: 0.8488 MB / 498.6 MB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/0.3789, allocations: 343.4 kB / 498.9 MB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01997/0.3989, allocations: 20.59 MB / 0.5073 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001711/0.4006, allocations: 95.97 kB / 0.5074 GB, free: 488 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001966/0.4008, allocations: 79.92 kB / 0.5075 GB, free: 408 kB / 430.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.001648/0.4024, allocations: 0.9383 MB / 0.5084 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004038/0.4028, allocations: 230.5 kB / 0.5086 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00454/0.4074, allocations: 2.613 MB / 0.5112 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.614e-05/0.4074, allocations: 16 kB / 0.5112 GB, free: 12.53 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.4074, allocations: 15.98 kB / 0.5112 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.53e-05/0.4074, allocations: 7.969 kB / 0.5112 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009907/0.4173, allocations: 5.859 MB / 0.5169 GB, free: 6.461 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/0.4174, allocations: 4 kB / 0.5169 GB, free: 6.457 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008745/0.4182, allocations: 199.6 kB / 0.5171 GB, free: 6.262 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00213/0.4204, allocations: 0.7388 MB / 0.5178 GB, free: 5.492 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001271/0.4205, allocations: 32 kB / 0.5179 GB, free: 5.461 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01678/0.4373, allocations: 18.17 MB / 0.5356 GB, free: 1.902 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.4373, allocations: 4.109 kB / 0.5356 GB, free: 1.898 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2203/0.6576, allocations: 3.794 MB / 0.5393 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001187/0.6588, allocations: 491.4 kB / 0.5398 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002724/0.6591, allocations: 34.14 kB / 0.5398 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/0.6601, allocations: 107 kB / 0.5399 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003195/0.6604, allocations: 143.2 kB / 0.5401 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.94e-05/0.6605, allocations: 45.05 kB / 0.5401 GB, free: 120.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001835/0.6624, allocations: 1.407 MB / 0.5415 GB, free: 120.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6624, allocations: 0 / 0.5415 GB, free: 120.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002002/0.6644, allocations: 0.6572 MB / 0.5421 GB, free: 120.1 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.000344/0.6647, allocations: 208 kB / 0.5423 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003478/0.6682, allocations: 3.369 MB / 0.5456 GB, free: 118.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.6682, allocations: 3.938 kB / 0.5456 GB, free: 118.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001852/0.6701, allocations: 2.133 MB / 0.5477 GB, free: 116.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00241/0.6725, allocations: 0.6884 MB / 0.5484 GB, free: 116.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006661/0.6791, allocations: 5.768 MB / 0.554 GB, free: 114 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001436/0.6806, allocations: 2.283 MB / 0.5562 GB, free: 113 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001182/0.6817, allocations: 0.4932 MB / 0.5567 GB, free: 112.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/0.6821, allocations: 135.4 kB / 0.5568 GB, free: 112.5 MB / 462.1 MB Notification: Performance of SimCode: time 8.11e-07/0.6821, allocations: 0 / 0.5568 GB, free: 112.5 MB / 462.1 MB Notification: Performance of Templates: time 0.05082/0.7329, allocations: 36.97 MB / 0.5929 GB, free: 77.16 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches