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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001645/0.001645, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 226.7 MB / 245.5 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001033/0.001033, allocations: 107.3 kB / 296.7 MB, free: 6.461 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009242/0.0009243, allocations: 51.92 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2172, allocations: 50.45 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008838/0.2261, allocations: 11.34 MB / 418.4 MB, free: 16.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005335/0.2315, allocations: 3.545 MB / 421.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00138/0.2329, allocations: 63.69 kB / 422 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00169/0.2346, allocations: 0.7496 MB / 422.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001904/0.2365, allocations: 0.8547 MB / 423.6 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008288/0.2374, allocations: 383.6 kB / 424 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0041/0.2415, allocations: 4.462 MB / 428.4 MB, free: 6.344 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002122/0.2436, allocations: 2.401 MB / 430.8 MB, free: 3.879 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001711/0.2454, allocations: 1.432 MB / 432.3 MB, free: 2.441 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001609/0.247, allocations: 1.914 MB / 434.2 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000354/0.2473, allocations: 260 kB / 434.4 MB, free: 272 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007352/0.2481, allocations: 363.8 kB / 434.8 MB, free: 15.91 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008582/0.249, allocations: 1.024 MB / 435.8 MB, free: 14.88 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001676/0.2506, allocations: 1.761 MB / 437.6 MB, free: 13.11 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004171/0.2548, allocations: 5.339 MB / 442.9 MB, free: 7.758 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2548, allocations: 0 / 442.9 MB, free: 7.758 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.2549, allocations: 0 / 442.9 MB, free: 7.758 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001559/0.255, allocations: 0 / 442.9 MB, free: 7.758 MB / 314.7 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.008103/0.2631, allocations: 3.813 MB / 446.7 MB, free: 3.875 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.2632, allocations: 15.97 kB / 446.8 MB, free: 3.859 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009179/0.2641, allocations: 388.6 kB / 447.1 MB, free: 3.477 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003584/0.2677, allocations: 1.981 MB / 449.1 MB, free: 1.441 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.2679, allocations: 214.1 kB / 449.3 MB, free: 1.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003675/0.2682, allocations: 287.8 kB / 449.6 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005782/0.274, allocations: 3.861 MB / 453.5 MB, free: 13 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.095e-05/0.2741, allocations: 11.94 kB / 453.5 MB, free: 12.99 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002337/0.2743, allocations: 112 kB / 453.6 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001128/0.2745, allocations: 125.5 kB / 453.7 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004911/0.2794, allocations: 3.254 MB / 457 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01886/0.2983, allocations: 11.9 MB / 468.9 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003289/0.3016, allocations: 3.668 MB / 472.5 MB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001968/0.3036, allocations: 1.235 MB / 473.8 MB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002506/0.3039, allocations: 128.2 kB / 473.9 MB, free: 7.805 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.33e-05/0.3039, allocations: 51.88 kB / 473.9 MB, free: 7.746 MB / 346.7 MB Notification: Performance of pre-optimization done (n=136): time 3.927e-06/0.3039, allocations: 0 / 473.9 MB, free: 7.746 MB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.01423/0.3181, allocations: 7.326 MB / 481.3 MB, free: 176 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.3182, allocations: 72.66 kB / 481.3 MB, free: 92 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003169/0.3214, allocations: 2.056 MB / 483.4 MB, free: 13.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001721/0.3216, allocations: 53.7 kB / 483.4 MB, free: 13.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001039/0.3227, allocations: 1.366 MB / 484.8 MB, free: 12.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004966/0.3232, allocations: 0.5122 MB / 485.3 MB, free: 12.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005539/0.3237, allocations: 347.2 kB / 485.7 MB, free: 11.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3238, allocations: 305.1 kB / 486 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001296/0.3252, allocations: 0.8705 MB / 486.8 MB, free: 10.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/0.3268, allocations: 1.361 MB / 488.2 MB, free: 8.945 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002895/0.3297, allocations: 2.33 MB / 490.5 MB, free: 6.406 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.3297, allocations: 4 kB / 490.5 MB, free: 6.402 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005567/0.3353, allocations: 3.277 MB / 493.8 MB, free: 3.062 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.102e-05/0.3354, allocations: 16.44 kB / 493.8 MB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.852e-05/0.3354, allocations: 20 kB / 493.8 MB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002275/0.3377, allocations: 0.8365 MB / 494.7 MB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.3389, allocations: 347.4 kB / 495 MB, free: 1.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2017/0.5407, allocations: 18.83 MB / 0.5018 GB, free: 87.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001943/0.5426, allocations: 100.8 kB / 0.5019 GB, free: 87.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/0.5428, allocations: 74.94 kB / 0.502 GB, free: 87.1 MB / 378.7 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.002035/0.5449, allocations: 0.9411 MB / 0.5029 GB, free: 86.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000414/0.5453, allocations: 214.9 kB / 0.5031 GB, free: 86.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00386/0.5492, allocations: 2.633 MB / 0.5057 GB, free: 85.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.5492, allocations: 17.56 kB / 0.5057 GB, free: 85.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.5492, allocations: 7.844 kB / 0.5057 GB, free: 85.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.5492, allocations: 7.781 kB / 0.5057 GB, free: 85.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008382/0.5576, allocations: 5.907 MB / 0.5115 GB, free: 83.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.258e-06/0.5577, allocations: 3.25 kB / 0.5115 GB, free: 83.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007176/0.5584, allocations: 197.9 kB / 0.5117 GB, free: 83.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001598/0.56, allocations: 0.7372 MB / 0.5124 GB, free: 83.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.598e-05/0.5601, allocations: 39.31 kB / 0.5124 GB, free: 83.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/0.5702, allocations: 16.72 MB / 0.5287 GB, free: 68.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.5702, allocations: 11.88 kB / 0.5288 GB, free: 68.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03796/0.6082, allocations: 36.23 MB / 0.5641 GB, free: 30.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009103/0.6091, allocations: 486.3 kB / 0.5646 GB, free: 29.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002161/0.6094, allocations: 32 kB / 0.5646 GB, free: 29.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00098/0.6103, allocations: 107.9 kB / 0.5647 GB, free: 29.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003094/0.6107, allocations: 145 kB / 0.5649 GB, free: 29.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.766e-05/0.6107, allocations: 40 kB / 0.5649 GB, free: 29.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001638/0.6124, allocations: 1.404 MB / 0.5663 GB, free: 28.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6124, allocations: 0 / 0.5663 GB, free: 28.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0027/0.6151, allocations: 0.9292 MB / 0.5672 GB, free: 27.31 MB / 378.7 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.0003456/0.6155, allocations: 201.9 kB / 0.5674 GB, free: 27.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003594/0.6191, allocations: 3.439 MB / 0.5707 GB, free: 23.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.6191, allocations: 4 kB / 0.5707 GB, free: 23.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001845/0.6209, allocations: 2.209 MB / 0.5729 GB, free: 21.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002655/0.6236, allocations: 0.6439 MB / 0.5735 GB, free: 20.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009651/0.6333, allocations: 9.36 MB / 0.5827 GB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001584/0.6349, allocations: 2.346 MB / 0.585 GB, free: 8.668 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001479/0.6364, allocations: 0.5066 MB / 0.5855 GB, free: 8.156 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003454/0.6367, allocations: 135.4 kB / 0.5856 GB, free: 8.023 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.6367, allocations: 3.938 kB / 0.5856 GB, free: 8.02 MB / 378.7 MB Notification: Performance of Templates: time 0.06767/0.7044, allocations: 44.24 MB / 0.6288 GB, free: 12.19 MB / 426.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches