Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001798/0.001798, allocations: 106.3 kB / 17.16 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002474/0.002474, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.907/1.907, allocations: 222.9 MB / 241.8 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001326, allocations: 50.05 kB / 300.6 MB, free: 6.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1532, allocations: 49.45 MB / 350.1 MB, free: 4.82 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.0243/0.1775, allocations: 11.33 MB / 361.4 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01218/0.1898, allocations: 3.505 MB / 364.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003152/0.193, allocations: 71.69 kB / 365 MB, free: 5.848 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004274/0.1973, allocations: 0.7264 MB / 365.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006614/0.204, allocations: 0.8469 MB / 366.5 MB, free: 4.266 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002306/0.2064, allocations: 387.6 kB / 366.9 MB, free: 3.887 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.3261/0.5325, allocations: 4.41 MB / 371.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007128/0.5397, allocations: 2.406 MB / 373.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004954/0.5447, allocations: 1.42 MB / 375.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007528/0.5523, allocations: 1.902 MB / 377.1 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003162/0.5555, allocations: 261.6 kB / 377.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004365/0.5599, allocations: 369.6 kB / 377.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003797/0.5638, allocations: 1.024 MB / 378.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008121/0.5719, allocations: 1.763 MB / 380.5 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.5836, allocations: 4.521 MB / 385 MB, free: 8.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.679e-06/0.5837, allocations: 4 kB / 385 MB, free: 8.203 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.5837, allocations: 2.438 kB / 385 MB, free: 8.203 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002541/0.5839, allocations: 0 / 385 MB, free: 8.203 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.01988/0.6038, allocations: 3.807 MB / 388.8 MB, free: 5.828 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.261e-05/0.604, allocations: 13.16 kB / 388.8 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00398/0.608, allocations: 396.1 kB / 389.2 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009581/0.6176, allocations: 1.984 MB / 391.2 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004993/0.6181, allocations: 214.9 kB / 391.4 MB, free: 4.262 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002434/0.6206, allocations: 281.8 kB / 391.7 MB, free: 4.168 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02141/0.6421, allocations: 3.86 MB / 395.5 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002831/0.6424, allocations: 18.09 kB / 395.5 MB, free: 1.871 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001684/0.6441, allocations: 111.8 kB / 395.7 MB, free: 1.785 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002368/0.6444, allocations: 125.3 kB / 395.8 MB, free: 1.766 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01428/0.6587, allocations: 3.253 MB / 399 MB, free: 104 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05068/0.7094, allocations: 11.9 MB / 410.9 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006674/0.7161, allocations: 3.659 MB / 414.6 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004168/0.7204, allocations: 1.247 MB / 415.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004778/0.7209, allocations: 129 kB / 416 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.854e-05/0.721, allocations: 51.88 kB / 416 MB, free: 15.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 7.664e-06/0.721, allocations: 0 / 416 MB, free: 15.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.03278/0.7538, allocations: 7.314 MB / 423.3 MB, free: 7.691 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.944e-05/0.754, allocations: 72.72 kB / 423.4 MB, free: 7.609 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008872/0.7629, allocations: 2.06 MB / 425.5 MB, free: 5.508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007362/0.7637, allocations: 53.7 kB / 425.5 MB, free: 5.449 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002453/0.7662, allocations: 1.371 MB / 426.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00124/0.7675, allocations: 0.5063 MB / 427.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001995/0.7695, allocations: 347.2 kB / 427.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.7697, allocations: 305.1 kB / 428 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00322/0.7729, allocations: 0.8731 MB / 428.9 MB, free: 2.055 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003935/0.7769, allocations: 1.369 MB / 430.3 MB, free: 492 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007604/0.7845, allocations: 2.324 MB / 432.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.454e-05/0.7846, allocations: 8 kB / 432.6 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.01396/0.7986, allocations: 3.271 MB / 435.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.084e-05/0.7987, allocations: 12 kB / 435.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.652e-05/0.7988, allocations: 12.5 kB / 435.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004762/0.8036, allocations: 0.8525 MB / 436.7 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002746/0.8064, allocations: 340.2 kB / 437.1 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03375/0.8402, allocations: 18.84 MB / 455.9 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004278/0.8445, allocations: 91.83 kB / 456 MB, free: 5.266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007773/0.8453, allocations: 76 kB / 456.1 MB, free: 5.191 MB / 366.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.004628/0.85, allocations: 0.9437 MB / 457 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001584/0.8516, allocations: 217.4 kB / 457.2 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01067/0.8623, allocations: 2.627 MB / 459.9 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.364e-05/0.8624, allocations: 16 kB / 459.9 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.954e-05/0.8624, allocations: 4 kB / 459.9 MB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.002e-05/0.8625, allocations: 7.969 kB / 459.9 MB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02642/0.8889, allocations: 5.914 MB / 465.8 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.115e-05/0.889, allocations: 4 kB / 465.8 MB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/0.8908, allocations: 198 kB / 466 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004106/0.8949, allocations: 0.7432 MB / 466.8 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003399/0.8953, allocations: 35.98 kB / 466.8 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03068/0.926, allocations: 16.72 MB / 483.5 MB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.41e-05/0.9261, allocations: 7.656 kB / 483.5 MB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01361/0.9397, allocations: 3.808 MB / 487.3 MB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003328/0.9431, allocations: 482.3 kB / 487.8 MB, free: 4 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001588/0.9448, allocations: 39.92 kB / 487.8 MB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003423/0.9482, allocations: 111.9 kB / 487.9 MB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008551/0.9491, allocations: 134.9 kB / 488.1 MB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003505/0.9495, allocations: 47.97 kB / 488.1 MB, free: 3.676 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.005729/0.9553, allocations: 1.408 MB / 489.5 MB, free: 2.246 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.9553, allocations: 4 kB / 489.5 MB, free: 2.242 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.008179/0.9635, allocations: 0.6523 MB / 490.2 MB, free: 1.59 MB / 398.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.001132/0.9647, allocations: 210.2 kB / 490.4 MB, free: 1.387 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01043/0.9751, allocations: 3.43 MB / 493.8 MB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-05/0.9752, allocations: 4 kB / 493.8 MB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005787/0.981, allocations: 2.196 MB / 496 MB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009219/0.9903, allocations: 0.6293 MB / 496.7 MB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02402/1.014, allocations: 6.979 MB / 0.4918 GB, free: 3.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005696/1.02, allocations: 2.264 MB / 0.494 GB, free: 1.621 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001401/1.022, allocations: 139.4 kB / 0.4942 GB, free: 1.484 MB / 414.1 MB Notification: Performance of SimCode: time 1.784e-06/1.022, allocations: 0 / 0.4942 GB, free: 1.484 MB / 414.1 MB Notification: Performance of Templates: time 0.6533/1.675, allocations: 187.8 MB / 0.6776 GB, free: 12.06 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches