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.001584/0.001584, allocations: 114.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001947/0.001947, allocations: 214 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 63.89 kB / 359.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2476, allocations: 50.53 MB / 409.9 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01334/0.261, allocations: 11.46 MB / 421.4 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006813/0.2678, allocations: 3.591 MB / 425 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001677/0.2696, allocations: 67.69 kB / 425 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002372/0.272, allocations: 0.8384 MB / 425.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003311/0.2753, allocations: 0.9279 MB / 426.8 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001157/0.2765, allocations: 439.4 kB / 427.2 MB, free: 168 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004568/0.2811, allocations: 3.755 MB / 431 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003441/0.2846, allocations: 2.862 MB / 433.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002621/0.2872, allocations: 1.678 MB / 435.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003354/0.2906, allocations: 1.965 MB / 437.5 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006871/0.2913, allocations: 416 kB / 437.9 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.2924, allocations: 0.5037 MB / 438.4 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001128/0.2936, allocations: 1.196 MB / 439.6 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002087/0.2957, allocations: 1.937 MB / 441.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005788/0.3015, allocations: 5.549 MB / 447.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.3015, allocations: 0 / 447.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3015, allocations: 4 kB / 447.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001217/0.3016, allocations: 0 / 447.1 MB, free: 12.19 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.007641/0.3093, allocations: 3.817 MB / 450.9 MB, free: 8.301 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.3093, allocations: 12.03 kB / 450.9 MB, free: 8.289 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000979/0.3103, allocations: 388.6 kB / 451.3 MB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003427/0.3138, allocations: 2.067 MB / 453.4 MB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.314, allocations: 206.1 kB / 453.6 MB, free: 5.582 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004262/0.3144, allocations: 299.8 kB / 453.9 MB, free: 5.289 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006413/0.3208, allocations: 3.857 MB / 457.7 MB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-05/0.3209, allocations: 4 kB / 457.7 MB, free: 1.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002582/0.3212, allocations: 116 kB / 457.8 MB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001125/0.3213, allocations: 125.5 kB / 458 MB, free: 1.102 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004956/0.3263, allocations: 3.254 MB / 461.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01689/0.3432, allocations: 11.79 MB / 473 MB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003113/0.3463, allocations: 3.65 MB / 476.7 MB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00207/0.3484, allocations: 1.242 MB / 477.9 MB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002597/0.3487, allocations: 122.4 kB / 478 MB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/0.3487, allocations: 51.88 kB / 478.1 MB, free: 12.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.436e-06/0.3487, allocations: 0 / 478.1 MB, free: 12.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01378/0.3625, allocations: 7.334 MB / 485.4 MB, free: 4.637 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.3626, allocations: 68.72 kB / 485.5 MB, free: 4.559 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002838/0.3654, allocations: 2.064 MB / 487.5 MB, free: 2.453 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001207/0.3656, allocations: 53.7 kB / 487.6 MB, free: 2.395 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009211/0.3665, allocations: 1.378 MB / 489 MB, free: 1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003893/0.3669, allocations: 0.5044 MB / 489.5 MB, free: 500 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000499/0.3674, allocations: 351.2 kB / 489.8 MB, free: 140 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.3675, allocations: 305.1 kB / 490.1 MB, free: 15.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/0.3688, allocations: 0.8666 MB / 491 MB, free: 14.97 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001549/0.3703, allocations: 1.369 MB / 492.4 MB, free: 13.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002876/0.3732, allocations: 2.33 MB / 494.7 MB, free: 10.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.3732, allocations: 4 kB / 494.7 MB, free: 10.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005361/0.3786, allocations: 3.277 MB / 498 MB, free: 7.512 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.3787, allocations: 12 kB / 498 MB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.079e-05/0.3787, allocations: 12 kB / 498 MB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002233/0.3809, allocations: 0.8487 MB / 498.8 MB, free: 6.605 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.3821, allocations: 343.4 kB / 499.2 MB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01753/0.3996, allocations: 20.58 MB / 0.5076 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001692/0.4014, allocations: 91.83 kB / 0.5077 GB, free: 60 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002599/0.4017, allocations: 76.05 kB / 0.5077 GB, free: 15.98 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.001689/0.4034, allocations: 0.9437 MB / 0.5087 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004721/0.4038, allocations: 225.3 kB / 0.5089 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004336/0.4082, allocations: 2.633 MB / 0.5114 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.4082, allocations: 16 kB / 0.5115 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-05/0.4082, allocations: 8.109 kB / 0.5115 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.4082, allocations: 11.91 kB / 0.5115 GB, free: 12.08 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008702/0.4169, allocations: 5.875 MB / 0.5172 GB, free: 6.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.842e-06/0.417, allocations: 96 / 0.5172 GB, free: 6.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007883/0.4178, allocations: 203.6 kB / 0.5174 GB, free: 5.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001783/0.4196, allocations: 0.7385 MB / 0.5181 GB, free: 5.051 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.609e-05/0.4197, allocations: 39.92 kB / 0.5182 GB, free: 5.012 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01441/0.4341, allocations: 18.15 MB / 0.5359 GB, free: 1.469 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.4341, allocations: 8.062 kB / 0.5359 GB, free: 1.461 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1964/0.6305, allocations: 3.791 MB / 0.5396 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009845/0.6316, allocations: 482.2 kB / 0.5401 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002703/0.6318, allocations: 34.56 kB / 0.5401 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/0.6329, allocations: 106.8 kB / 0.5402 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00035/0.6333, allocations: 142.2 kB / 0.5403 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.995e-05/0.6334, allocations: 44.72 kB / 0.5404 GB, free: 120.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001709/0.6351, allocations: 1.41 MB / 0.5417 GB, free: 120.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6351, allocations: 0 / 0.5417 GB, free: 120.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001976/0.6371, allocations: 0.6537 MB / 0.5424 GB, free: 120.6 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.0003228/0.6374, allocations: 203.8 kB / 0.5426 GB, free: 120.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003488/0.6409, allocations: 3.45 MB / 0.5459 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.6409, allocations: 2.125 kB / 0.546 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001836/0.6428, allocations: 2.205 MB / 0.5481 GB, free: 117.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002455/0.6452, allocations: 0.6897 MB / 0.5488 GB, free: 117 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006492/0.6517, allocations: 5.669 MB / 0.5543 GB, free: 114.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001298/0.6531, allocations: 2.253 MB / 0.5565 GB, free: 112.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003999/0.6535, allocations: 147.4 kB / 0.5567 GB, free: 112.8 MB / 462.1 MB Notification: Performance of SimCode: time 6.22e-07/0.6535, allocations: 0 / 0.5567 GB, free: 112.8 MB / 462.1 MB Notification: Performance of Templates: time 0.3301/0.9836, allocations: 188.3 MB / 0.7406 GB, free: 181.1 MB / 0.5137 GB 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/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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches