Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001266/0.001266, allocations: 117.6 kB / 17.83 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001344, allocations: 207.9 kB / 18.79 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.421/1.421, allocations: 230.4 MB / 250 MB, free: 9.016 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 59.84 kB / 367.4 MB, free: 7.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2703, allocations: 53.31 MB / 420.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.0177/0.288, allocations: 11.97 MB / 432.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008961/0.297, allocations: 4.054 MB / 436.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00175/0.2987, allocations: 83.62 kB / 436.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002182/0.3009, allocations: 0.9548 MB / 437.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002726/0.3036, allocations: 1.01 MB / 438.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001166/0.3048, allocations: 0.5656 MB / 439.3 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004086/0.3089, allocations: 3.406 MB / 442.7 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00308/0.312, allocations: 2.261 MB / 445 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002162/0.3141, allocations: 1.596 MB / 446.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002687/0.3168, allocations: 2.086 MB / 448.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006184/0.3174, allocations: 436 kB / 449.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009496/0.3184, allocations: 0.5506 MB / 449.6 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001253/0.3196, allocations: 1.27 MB / 450.9 MB, free: 9.922 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002029/0.3217, allocations: 1.944 MB / 452.8 MB, free: 7.969 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006361/0.328, allocations: 5.718 MB / 458.6 MB, free: 2.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.328, allocations: 0 / 458.6 MB, free: 2.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.328, allocations: 0 / 458.6 MB, free: 2.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001014/0.3281, allocations: 0 / 458.6 MB, free: 2.23 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.0078/0.3359, allocations: 4.036 MB / 462.6 MB, free: 14.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.336, allocations: 12.03 kB / 462.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001128/0.3371, allocations: 434.4 kB / 463 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00358/0.3407, allocations: 2.14 MB / 465.2 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/0.3409, allocations: 226.2 kB / 465.4 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004523/0.3413, allocations: 299.9 kB / 465.7 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006329/0.3477, allocations: 3.858 MB / 469.6 MB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.185e-05/0.3477, allocations: 11.95 kB / 469.6 MB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002699/0.348, allocations: 116 kB / 469.7 MB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001626/0.3482, allocations: 157.7 kB / 469.8 MB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005731/0.3539, allocations: 3.251 MB / 473.1 MB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01936/0.3733, allocations: 12.06 MB / 485.1 MB, free: 7.086 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00259/0.3759, allocations: 1.847 MB / 487 MB, free: 5.125 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001901/0.3778, allocations: 1.067 MB / 488.1 MB, free: 4.055 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003304/0.3781, allocations: 211.5 kB / 488.3 MB, free: 3.809 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.3781, allocations: 59.75 kB / 488.3 MB, free: 3.742 MB / 398.1 MB Notification: Performance of pre-optimization done (n=139): time 3.236e-06/0.3781, allocations: 0 / 488.3 MB, free: 3.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=155): time 0.01416/0.3923, allocations: 7.046 MB / 495.4 MB, free: 12.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.679e-05/0.3924, allocations: 72.66 kB / 495.4 MB, free: 12.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003489/0.3958, allocations: 2.032 MB / 497.5 MB, free: 10.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002016/0.396, allocations: 53.7 kB / 497.5 MB, free: 10.35 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001262/0.3973, allocations: 1.507 MB / 499 MB, free: 8.832 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005633/0.3979, allocations: 0.5578 MB / 499.6 MB, free: 8.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005952/0.3985, allocations: 355.4 kB / 499.9 MB, free: 7.914 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.3986, allocations: 305.1 kB / 0.4885 GB, free: 7.613 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001462/0.4001, allocations: 0.8745 MB / 0.4894 GB, free: 6.738 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001952/0.402, allocations: 1.454 MB / 0.4908 GB, free: 5.031 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00358/0.4056, allocations: 2.502 MB / 0.4932 GB, free: 2.281 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.298e-06/0.4056, allocations: 4 kB / 0.4932 GB, free: 2.277 MB / 414.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005288/0.4109, allocations: 3.016 MB / 0.4962 GB, free: 15.22 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.4109, allocations: 16.03 kB / 0.4962 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.697e-05/0.411, allocations: 23.92 kB / 0.4962 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009641/0.4119, allocations: 387.1 kB / 0.4966 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/0.4136, allocations: 467.2 kB / 0.497 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007115/0.4208, allocations: 6.706 MB / 0.5036 GB, free: 7.215 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001713/0.4225, allocations: 139.7 kB / 0.5037 GB, free: 7.078 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001555/0.4226, allocations: 83.98 kB / 0.5038 GB, free: 6.996 MB / 430.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 (228): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001687/0.4243, allocations: 0.9382 MB / 0.5047 GB, free: 6.047 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004289/0.4247, allocations: 226.7 kB / 0.5049 GB, free: 5.824 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004597/0.4293, allocations: 2.59 MB / 0.5074 GB, free: 3.195 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/0.4294, allocations: 16 kB / 0.5075 GB, free: 3.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.4294, allocations: 8 kB / 0.5075 GB, free: 3.172 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.4294, allocations: 7.969 kB / 0.5075 GB, free: 3.164 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/0.4394, allocations: 5.819 MB / 0.5132 GB, free: 13.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.4394, allocations: 4 kB / 0.5132 GB, free: 13.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001295/0.4407, allocations: 291.5 kB / 0.5134 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001076/0.4418, allocations: 407.1 kB / 0.5138 GB, free: 12.49 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.4419, allocations: 35.98 kB / 0.5139 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00853/0.4504, allocations: 8.26 MB / 0.5219 GB, free: 3.637 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.266e-06/0.4505, allocations: 7.984 kB / 0.5219 GB, free: 3.629 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006634/0.4571, allocations: 3.84 MB / 0.5257 GB, free: 15.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001176/0.4583, allocations: 495.4 kB / 0.5262 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002843/0.4585, allocations: 40 kB / 0.5262 GB, free: 15.14 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.4596, allocations: 99.92 kB / 0.5263 GB, free: 15.04 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002782/0.4599, allocations: 113 kB / 0.5264 GB, free: 14.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.46, allocations: 47.98 kB / 0.5264 GB, free: 14.88 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002398/0.4624, allocations: 1.39 MB / 0.5278 GB, free: 13.47 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4624, allocations: 0 / 0.5278 GB, free: 13.47 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001999/0.4644, allocations: 0.5624 MB / 0.5284 GB, free: 12.91 MB / 462.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 (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,6,100.0%), (1,1,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.000436/0.4648, allocations: 217.8 kB / 0.5286 GB, free: 12.69 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004165/0.469, allocations: 2.534 MB / 0.531 GB, free: 10.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.469, allocations: 0 / 0.531 GB, free: 10.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002226/0.4712, allocations: 1.503 MB / 0.5325 GB, free: 8.547 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002389/0.4736, allocations: 0.557 MB / 0.5331 GB, free: 8.004 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009838/0.4835, allocations: 5.963 MB / 0.5389 GB, free: 1.957 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2134/0.6968, allocations: 2.255 MB / 0.5411 GB, free: 114.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001993/0.6988, allocations: 0.5314 MB / 0.5416 GB, free: 114.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000504/0.6993, allocations: 163 kB / 0.5418 GB, free: 114.1 MB / 462.1 MB Notification: Performance of SimCode: time 9.82e-07/0.6993, allocations: 0 / 0.5418 GB, free: 114.1 MB / 462.1 MB Notification: Performance of Templates: time 0.0512/0.7506, allocations: 31.9 MB / 0.5729 GB, free: 92.88 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches