Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00105/0.00105, allocations: 96.22 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001029/0.001029, allocations: 206.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002292/0.0002293, allocations: 12 kB / 306.6 MB, free: 1.648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1003, allocations: 51.49 MB / 358.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01077/0.1111, allocations: 9.75 MB / 367.8 MB, free: 4.375 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007651/0.1188, allocations: 3.894 MB / 371.7 MB, free: 480 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001731/0.1205, allocations: 59.69 kB / 371.8 MB, free: 420 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1996/0.3202, allocations: 0.7314 MB / 372.5 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004039/0.3242, allocations: 0.8728 MB / 373.4 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001365/0.3256, allocations: 371.6 kB / 373.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006337/0.332, allocations: 2.19 MB / 375.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003839/0.3359, allocations: 2.167 MB / 378.1 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002667/0.3386, allocations: 1.063 MB / 379.2 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002727/0.3413, allocations: 1.432 MB / 380.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004369/0.3418, allocations: 165.3 kB / 380.8 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009526/0.3427, allocations: 257.9 kB / 381 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001053/0.3438, allocations: 0.8877 MB / 381.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008491/0.3446, allocations: 0.6451 MB / 382.5 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00471/0.3494, allocations: 4.5 MB / 387 MB, free: 7.484 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.3494, allocations: 0 / 387 MB, free: 7.484 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.3494, allocations: 1.344 kB / 387 MB, free: 7.484 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001515/0.3495, allocations: 0 / 387 MB, free: 7.484 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.008207/0.3578, allocations: 3.324 MB / 390.4 MB, free: 5.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.3578, allocations: 14.73 kB / 390.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001619/0.3594, allocations: 414 kB / 390.8 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003834/0.3633, allocations: 2.037 MB / 392.8 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001925/0.3635, allocations: 223 kB / 393 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004838/0.364, allocations: 296.2 kB / 393.3 MB, free: 4.426 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006153/0.3702, allocations: 3.804 MB / 397.1 MB, free: 3.082 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-05/0.3702, allocations: 11.08 kB / 397.1 MB, free: 3.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002418/0.3705, allocations: 125.8 kB / 397.3 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001237/0.3706, allocations: 151.9 kB / 397.4 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004544/0.3752, allocations: 3.231 MB / 400.6 MB, free: 1.105 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01837/0.3935, allocations: 12.16 MB / 412.8 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002373/0.396, allocations: 1.936 MB / 414.7 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000306/0.3963, allocations: 205.3 kB / 414.9 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.442e-05/0.3963, allocations: 59.86 kB / 415 MB, free: 2.336 MB / 318.1 MB Notification: Performance of pre-optimization done (n=139): time 3.015e-06/0.3963, allocations: 0 / 415 MB, free: 2.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=155): time 0.01391/0.4103, allocations: 7.33 MB / 422.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.4103, allocations: 74.75 kB / 422.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00265/0.413, allocations: 1.966 MB / 424.4 MB, free: 8.789 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.4131, allocations: 49.7 kB / 424.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009689/0.4141, allocations: 1.455 MB / 425.9 MB, free: 7.266 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004211/0.4145, allocations: 0.5331 MB / 426.4 MB, free: 6.738 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.818e-05/0.4146, allocations: 40 kB / 426.4 MB, free: 6.699 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.4148, allocations: 377.9 kB / 426.8 MB, free: 6.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.4161, allocations: 0.8745 MB / 427.7 MB, free: 5.449 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/0.4178, allocations: 1.445 MB / 429.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.4194, allocations: 1.111 MB / 430.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.4194, allocations: 12 kB / 430.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004314/0.4237, allocations: 2.982 MB / 433.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.4238, allocations: 12 kB / 433.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.413e-05/0.4238, allocations: 16 kB / 433.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007878/0.4246, allocations: 369.4 kB / 433.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/0.4262, allocations: 483.2 kB / 434.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005239/0.4315, allocations: 6.031 MB / 440.1 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.4331, allocations: 146.4 kB / 440.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.4332, allocations: 83.97 kB / 440.4 MB, free: 8.098 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001861/0.4351, allocations: 0.9343 MB / 441.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003434/0.4355, allocations: 217.4 kB / 441.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004018/0.4395, allocations: 2.578 MB / 444.1 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.4395, allocations: 16.38 kB / 444.1 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.4395, allocations: 4 kB / 444.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/0.4395, allocations: 7.969 kB / 444.1 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008983/0.4485, allocations: 5.804 MB / 449.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.809e-06/0.4486, allocations: 7.938 kB / 449.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.4498, allocations: 295.5 kB / 450.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009534/0.4507, allocations: 383.4 kB / 450.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001051/0.4509, allocations: 39.98 kB / 450.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006841/0.4577, allocations: 7.53 MB / 458.2 MB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/0.4577, allocations: 16 kB / 458.2 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006277/0.464, allocations: 4.095 MB / 462.3 MB, free: 1.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001486/0.4655, allocations: 498.1 kB / 462.7 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000313/0.4659, allocations: 39.98 kB / 462.8 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.4669, allocations: 95.89 kB / 462.9 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002265/0.4671, allocations: 116.3 kB / 463 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.612e-05/0.4672, allocations: 43.98 kB / 463 MB, free: 484 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002067/0.4693, allocations: 1.339 MB / 464.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4693, allocations: 0 / 464.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002063/0.4714, allocations: 0.5508 MB / 464.9 MB, free: 14.56 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (149): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003431/0.4717, allocations: 178.9 kB / 465.1 MB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003615/0.4754, allocations: 2.622 MB / 467.7 MB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.4754, allocations: 4 kB / 467.7 MB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001947/0.4773, allocations: 1.55 MB / 469.3 MB, free: 10.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/0.4795, allocations: 0.5011 MB / 469.8 MB, free: 9.598 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009261/0.4887, allocations: 7.017 MB / 476.8 MB, free: 2.512 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001932/0.4907, allocations: 2.313 MB / 479.1 MB, free: 168 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001565/0.4923, allocations: 0.5298 MB / 479.6 MB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00045/0.4927, allocations: 167.3 kB / 479.8 MB, free: 15.47 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4927, allocations: 1.641 kB / 479.8 MB, free: 15.47 MB / 398.1 MB Notification: Performance of Templates: time 0.04913/0.5419, allocations: 27.97 MB / 0.4959 GB, free: 3.777 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches