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.001068/0.001068, allocations: 122.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001519/0.001519, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 63.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2824, allocations: 50.54 MB / 409.3 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01206/0.2945, allocations: 11.45 MB / 420.7 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006512/0.3011, allocations: 3.587 MB / 424.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001387/0.3025, allocations: 71.69 kB / 424.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00209/0.3046, allocations: 0.893 MB / 425.3 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002334/0.3069, allocations: 0.9786 MB / 426.2 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008365/0.3078, allocations: 439.4 kB / 426.7 MB, free: 104 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00352/0.3113, allocations: 3.756 MB / 430.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00293/0.3143, allocations: 2.862 MB / 433.3 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002167/0.3164, allocations: 1.678 MB / 435 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002164/0.3186, allocations: 1.965 MB / 436.9 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004975/0.3191, allocations: 416 kB / 437.3 MB, free: 5.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000796/0.3199, allocations: 0.4998 MB / 437.8 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009813/0.3209, allocations: 1.2 MB / 439 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001782/0.3227, allocations: 1.937 MB / 441 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004869/0.3276, allocations: 5.549 MB / 446.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3276, allocations: 0 / 446.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3276, allocations: 0 / 446.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.901e-05/0.3277, allocations: 4 kB / 446.5 MB, free: 12.12 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.006206/0.3339, allocations: 3.817 MB / 450.3 MB, free: 8.234 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.334, allocations: 8.031 kB / 450.4 MB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008532/0.3348, allocations: 396.6 kB / 450.7 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003159/0.338, allocations: 2.063 MB / 452.8 MB, free: 5.719 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.3382, allocations: 214.1 kB / 453 MB, free: 5.508 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003765/0.3385, allocations: 291.8 kB / 453.3 MB, free: 5.223 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005659/0.3442, allocations: 3.853 MB / 457.1 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.223e-05/0.3443, allocations: 4 kB / 457.2 MB, free: 1.277 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002523/0.3445, allocations: 120 kB / 457.3 MB, free: 1.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000109/0.3447, allocations: 121.5 kB / 457.4 MB, free: 1.039 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004826/0.3495, allocations: 3.258 MB / 460.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01662/0.3661, allocations: 11.78 MB / 472.4 MB, free: 1.672 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003309/0.3695, allocations: 3.648 MB / 476.1 MB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001975/0.3715, allocations: 1.248 MB / 477.3 MB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002524/0.3717, allocations: 122.4 kB / 477.4 MB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.859e-05/0.3718, allocations: 51.86 kB / 477.5 MB, free: 12.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 2.895e-06/0.3718, allocations: 0 / 477.5 MB, free: 12.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01279/0.3846, allocations: 7.335 MB / 484.8 MB, free: 4.566 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.3846, allocations: 64.72 kB / 484.9 MB, free: 4.492 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003038/0.3877, allocations: 2.068 MB / 487 MB, free: 2.383 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001203/0.3878, allocations: 53.7 kB / 487 MB, free: 2.324 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009888/0.3888, allocations: 1.378 MB / 488.4 MB, free: 0.9297 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003869/0.3892, allocations: 0.5122 MB / 488.9 MB, free: 420 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005092/0.3897, allocations: 347.2 kB / 489.2 MB, free: 64 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.3898, allocations: 301.1 kB / 489.5 MB, free: 15.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001238/0.3911, allocations: 0.8705 MB / 490.4 MB, free: 14.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/0.3926, allocations: 1.361 MB / 491.8 MB, free: 13.33 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002895/0.3955, allocations: 2.334 MB / 494.1 MB, free: 10.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.3955, allocations: 4 kB / 494.1 MB, free: 10.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005176/0.4007, allocations: 3.277 MB / 497.4 MB, free: 7.445 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/0.4008, allocations: 12 kB / 497.4 MB, free: 7.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/0.4008, allocations: 16 kB / 497.4 MB, free: 7.418 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002287/0.4031, allocations: 0.8446 MB / 498.3 MB, free: 6.539 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.4042, allocations: 343.4 kB / 498.6 MB, free: 6.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01801/0.4223, allocations: 20.58 MB / 0.507 GB, free: 84 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.4242, allocations: 99.94 kB / 0.5071 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003056/0.4245, allocations: 72 kB / 0.5072 GB, free: 15.91 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.001935/0.4264, allocations: 0.9456 MB / 0.5081 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005915/0.427, allocations: 217.3 kB / 0.5083 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004548/0.4316, allocations: 2.629 MB / 0.5109 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.4316, allocations: 16 kB / 0.5109 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.922e-05/0.4316, allocations: 8 kB / 0.5109 GB, free: 12.03 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/0.4317, allocations: 7.969 kB / 0.5109 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/0.4424, allocations: 5.882 MB / 0.5166 GB, free: 5.953 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.4425, allocations: 4 kB / 0.5166 GB, free: 5.949 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007684/0.4433, allocations: 195.6 kB / 0.5168 GB, free: 5.758 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001869/0.4451, allocations: 0.7345 MB / 0.5175 GB, free: 4.992 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/0.4453, allocations: 39.98 kB / 0.5176 GB, free: 4.953 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01685/0.4621, allocations: 18.15 MB / 0.5353 GB, free: 1.406 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.4622, allocations: 4 kB / 0.5353 GB, free: 1.402 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2735/0.7357, allocations: 3.795 MB / 0.539 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002019/0.7377, allocations: 482.9 kB / 0.5395 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008098/0.7385, allocations: 30.91 kB / 0.5395 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001538/0.7401, allocations: 109.5 kB / 0.5396 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004756/0.7406, allocations: 139.6 kB / 0.5398 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/0.7408, allocations: 46.11 kB / 0.5398 GB, free: 120.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002443/0.7432, allocations: 1.405 MB / 0.5412 GB, free: 120.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7432, allocations: 0 / 0.5412 GB, free: 120.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002703/0.7459, allocations: 0.6557 MB / 0.5418 GB, free: 120.8 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.000444/0.7464, allocations: 217.4 kB / 0.542 GB, free: 120.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004245/0.7506, allocations: 3.447 MB / 0.5454 GB, free: 118.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.7507, allocations: 3.938 kB / 0.5454 GB, free: 118.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002028/0.7527, allocations: 2.206 MB / 0.5475 GB, free: 117.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002478/0.7552, allocations: 0.6964 MB / 0.5482 GB, free: 117.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007028/0.7622, allocations: 5.652 MB / 0.5537 GB, free: 114.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001419/0.7637, allocations: 2.293 MB / 0.556 GB, free: 113 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001058/0.7647, allocations: 0.4938 MB / 0.5565 GB, free: 112.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002992/0.765, allocations: 139.4 kB / 0.5566 GB, free: 112.5 MB / 462.1 MB Notification: Performance of SimCode: time 4.61e-07/0.765, allocations: 0 / 0.5566 GB, free: 112.5 MB / 462.1 MB Notification: Performance of Templates: time 0.05238/0.8174, allocations: 36.68 MB / 0.5924 GB, free: 77.16 MB / 462.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