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.SMR_Inverter.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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001241/0.001241, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001307/0.001307, allocations: 210.4 kB / 18.58 MB, free: 4.578 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.414/1.414, allocations: 227.7 MB / 247 MB, free: 10.32 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.001941/0.001941, allocations: 73.22 kB / 307.2 MB, free: 452 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09519/0.09715, allocations: 50.53 MB / 357.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01186/0.109, allocations: 9.669 MB / 367.4 MB, free: 4.176 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006086/0.1152, allocations: 3.162 MB / 370.6 MB, free: 1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00095/0.1162, allocations: 51.81 kB / 370.7 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001543/0.1177, allocations: 0.679 MB / 371.3 MB, free: 272 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1672/0.2849, allocations: 0.7574 MB / 372.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009847/0.2859, allocations: 398 kB / 372.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002755/0.2886, allocations: 2.537 MB / 375 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002477/0.2911, allocations: 2.33 MB / 377.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001706/0.2928, allocations: 1.186 MB / 378.5 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00171/0.2946, allocations: 1.498 MB / 380 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004259/0.295, allocations: 318 kB / 380.4 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008634/0.2959, allocations: 423.7 kB / 380.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008395/0.2967, allocations: 0.9035 MB / 381.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001501/0.2982, allocations: 1.42 MB / 383.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003757/0.302, allocations: 4.108 MB / 387.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.302, allocations: 0 / 387.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.302, allocations: 0 / 387.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.116e-05/0.3021, allocations: 2.469 kB / 387.2 MB, free: 6.527 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005637/0.3078, allocations: 2.913 MB / 390.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.3078, allocations: 9.531 kB / 390.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007934/0.3086, allocations: 292.6 kB / 390.4 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002095/0.3107, allocations: 1.488 MB / 391.9 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.3109, allocations: 166.3 kB / 392.1 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002795/0.3112, allocations: 220.7 kB / 392.3 MB, free: 3.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004149/0.3153, allocations: 2.796 MB / 395.1 MB, free: 1.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.208e-05/0.3154, allocations: 10.3 kB / 395.1 MB, free: 1.641 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001886/0.3156, allocations: 93.84 kB / 395.2 MB, free: 1.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001052/0.3157, allocations: 105.4 kB / 395.3 MB, free: 1.551 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003523/0.3192, allocations: 2.343 MB / 397.6 MB, free: 360 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01402/0.3332, allocations: 8.603 MB / 406.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002757/0.336, allocations: 1.702 MB / 407.9 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001931/0.338, allocations: 0.985 MB / 408.9 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003112/0.3383, allocations: 197.8 kB / 409.1 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.3383, allocations: 43.56 kB / 409.1 MB, free: 5.316 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 3.146e-06/0.3384, allocations: 0 / 409.1 MB, free: 5.316 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01472/0.3531, allocations: 6.229 MB / 415.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.3532, allocations: 64.41 kB / 415.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002357/0.3555, allocations: 1.441 MB / 416.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.3556, allocations: 53.7 kB / 416.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000843/0.3565, allocations: 1.038 MB / 418 MB, free: 12.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003755/0.3569, allocations: 411.5 kB / 418.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004259/0.3573, allocations: 247.5 kB / 418.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.3575, allocations: 361.9 kB / 419 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.3587, allocations: 0.6892 MB / 419.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001579/0.3603, allocations: 1.07 MB / 420.7 MB, free: 9.367 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00288/0.3632, allocations: 1.871 MB / 422.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.3632, allocations: 7.938 kB / 422.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004503/0.3678, allocations: 2.417 MB / 425 MB, free: 4.875 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.3678, allocations: 8 kB / 425 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/0.3678, allocations: 12 kB / 425 MB, free: 4.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.3689, allocations: 409.9 kB / 425.4 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.3701, allocations: 331.4 kB / 425.8 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007773/0.3779, allocations: 7.054 MB / 432.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/0.3794, allocations: 103.8 kB / 432.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.3795, allocations: 59.98 kB / 433 MB, free: 12.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 153 * 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 {(3,11,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.001332/0.3808, allocations: 0.6886 MB / 433.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003087/0.3811, allocations: 162 kB / 433.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004032/0.3852, allocations: 2.13 MB / 436 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/0.3852, allocations: 12 kB / 436 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.3852, allocations: 4 kB / 436 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.3852, allocations: 7.969 kB / 436 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008238/0.3935, allocations: 4.59 MB / 440.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.3935, allocations: 4 kB / 440.6 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009458/0.3945, allocations: 211.7 kB / 440.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/0.3957, allocations: 451.4 kB / 441.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.911e-05/0.3958, allocations: 31.98 kB / 441.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009254/0.405, allocations: 8.631 MB / 449.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/0.4051, allocations: 8.078 kB / 449.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005511/0.4106, allocations: 3.109 MB / 453 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009031/0.4115, allocations: 375 kB / 453.4 MB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002286/0.4118, allocations: 32 kB / 453.4 MB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009109/0.4127, allocations: 79.91 kB / 453.5 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002507/0.4129, allocations: 96.75 kB / 453.6 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.403e-05/0.413, allocations: 39.98 kB / 453.6 MB, free: 7.039 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001596/0.4146, allocations: 0.9849 MB / 454.6 MB, free: 6.055 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4146, allocations: 4 kB / 454.6 MB, free: 6.051 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001724/0.4164, allocations: 464.1 kB / 455 MB, free: 5.598 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * 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 (102): * Single equations (assignments): 98 * 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 {(3,11,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.0003894/0.4168, allocations: 200.3 kB / 455.2 MB, free: 5.395 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005268/0.422, allocations: 2.701 MB / 457.9 MB, free: 2.637 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/0.4221, allocations: 3.984 kB / 457.9 MB, free: 2.633 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002476/0.4245, allocations: 1.435 MB / 459.4 MB, free: 1.145 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002032/0.4266, allocations: 427.6 kB / 459.8 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008292/0.4349, allocations: 4.485 MB / 464.3 MB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001815/0.4368, allocations: 1.807 MB / 466.1 MB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001283/0.438, allocations: 365.6 kB / 466.4 MB, free: 9.992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003267/0.4384, allocations: 119.3 kB / 466.6 MB, free: 9.875 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4384, allocations: 0 / 466.6 MB, free: 9.875 MB / 382.1 MB Notification: Performance of Templates: time 0.04673/0.4851, allocations: 24.44 MB / 491 MB, free: 1.73 MB / 398.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches