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.001329/0.001329, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 207.8 kB / 19.25 MB, free: 3.941 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.446/1.446, allocations: 227.7 MB / 247.7 MB, free: 10.35 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.001959/0.001959, allocations: 68.59 kB / 307.9 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1035, allocations: 50.53 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.0122/0.1158, allocations: 9.659 MB / 368.1 MB, free: 4.227 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005966/0.1218, allocations: 3.158 MB / 371.3 MB, free: 1.055 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009771/0.1228, allocations: 59.69 kB / 371.3 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001642/0.1245, allocations: 0.6751 MB / 372 MB, free: 324 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1638/0.2883, allocations: 0.7584 MB / 372.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001304/0.2896, allocations: 397 kB / 373.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00368/0.2933, allocations: 2.535 MB / 375.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002839/0.2962, allocations: 2.34 MB / 378 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002494/0.2987, allocations: 1.187 MB / 379.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002606/0.3013, allocations: 1.496 MB / 380.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006769/0.302, allocations: 317.2 kB / 381 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001353/0.3034, allocations: 426.2 kB / 381.4 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001007/0.3044, allocations: 0.9031 MB / 382.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002434/0.3068, allocations: 1.42 MB / 383.7 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004562/0.3114, allocations: 4.103 MB / 387.8 MB, free: 6.578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3114, allocations: 3.281 kB / 387.9 MB, free: 6.578 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3114, allocations: 1.469 kB / 387.9 MB, free: 6.578 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.786e-05/0.3115, allocations: 3.938 kB / 387.9 MB, free: 6.574 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.005671/0.3172, allocations: 2.914 MB / 390.8 MB, free: 4.723 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.3173, allocations: 10.25 kB / 390.8 MB, free: 4.723 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008603/0.3181, allocations: 292.3 kB / 391.1 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002297/0.3204, allocations: 1.488 MB / 392.6 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/0.3206, allocations: 167.8 kB / 392.7 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003173/0.3209, allocations: 213.3 kB / 392.9 MB, free: 3.391 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004836/0.3258, allocations: 2.804 MB / 395.7 MB, free: 1.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.708e-05/0.3258, allocations: 6 kB / 395.7 MB, free: 1.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001967/0.326, allocations: 87.47 kB / 395.8 MB, free: 1.645 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.3262, allocations: 104 kB / 395.9 MB, free: 1.625 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003561/0.3298, allocations: 2.348 MB / 398.3 MB, free: 432 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01572/0.3455, allocations: 8.605 MB / 406.9 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002774/0.3483, allocations: 1.702 MB / 408.6 MB, free: 6.668 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001914/0.3502, allocations: 0.9809 MB / 409.6 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003077/0.3506, allocations: 202.6 kB / 409.8 MB, free: 5.457 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.052e-05/0.3506, allocations: 43.56 kB / 409.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.745e-06/0.3506, allocations: 0 / 409.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01417/0.3648, allocations: 6.226 MB / 416 MB, free: 15.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.3649, allocations: 68.39 kB / 416.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002263/0.3672, allocations: 1.449 MB / 417.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.369e-05/0.3673, allocations: 41.7 kB / 417.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008994/0.3682, allocations: 1.04 MB / 418.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003744/0.3686, allocations: 411.9 kB / 419 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004432/0.369, allocations: 254.2 kB / 419.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.3692, allocations: 365.9 kB / 419.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.3704, allocations: 0.6832 MB / 420.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.372, allocations: 1.07 MB / 421.4 MB, free: 9.453 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002937/0.375, allocations: 1.872 MB / 423.3 MB, free: 7.426 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/0.375, allocations: 0 / 423.3 MB, free: 7.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004546/0.3796, allocations: 2.413 MB / 425.7 MB, free: 4.973 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.179e-05/0.3796, allocations: 12.25 kB / 425.7 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.508e-05/0.3796, allocations: 19.94 kB / 425.7 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.3807, allocations: 411 kB / 426.1 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.382, allocations: 335.4 kB / 426.4 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008084/0.3901, allocations: 7.039 MB / 433.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/0.3917, allocations: 99.84 kB / 433.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.3919, allocations: 63.98 kB / 433.6 MB, free: 12.59 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.001393/0.3933, allocations: 0.6808 MB / 434.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003541/0.3936, allocations: 169.9 kB / 434.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004045/0.3977, allocations: 2.138 MB / 436.6 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.3977, allocations: 12 kB / 436.6 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.3977, allocations: 4 kB / 436.6 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.3977, allocations: 7.969 kB / 436.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008301/0.4061, allocations: 4.582 MB / 441.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.4061, allocations: 4 kB / 441.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000947/0.407, allocations: 211.7 kB / 441.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00122/0.4083, allocations: 453.5 kB / 441.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-05/0.4084, allocations: 35.98 kB / 441.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009473/0.4179, allocations: 8.627 MB / 450.5 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.236e-05/0.4179, allocations: 4.047 kB / 450.5 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005594/0.4235, allocations: 3.111 MB / 453.6 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008946/0.4244, allocations: 383 kB / 454 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002476/0.4247, allocations: 28 kB / 454 MB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009091/0.4256, allocations: 79.91 kB / 454.1 MB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000247/0.4259, allocations: 96.75 kB / 454.2 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.072e-05/0.4259, allocations: 35.98 kB / 454.3 MB, free: 7.133 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00161/0.4276, allocations: 0.9888 MB / 455.2 MB, free: 6.145 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4276, allocations: 0 / 455.2 MB, free: 6.145 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00173/0.4293, allocations: 464.1 kB / 455.7 MB, free: 5.691 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.0004029/0.4297, allocations: 199.3 kB / 455.9 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005254/0.435, allocations: 2.702 MB / 458.6 MB, free: 2.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.435, allocations: 8.062 kB / 458.6 MB, free: 2.723 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002507/0.4375, allocations: 1.434 MB / 460 MB, free: 1.234 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002204/0.4397, allocations: 428.4 kB / 460.5 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007945/0.4477, allocations: 4.547 MB / 465 MB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001711/0.4494, allocations: 1.78 MB / 466.8 MB, free: 10.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005837/0.45, allocations: 131.3 kB / 466.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of SimCode: time 8.11e-07/0.45, allocations: 0 / 466.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of Templates: time 0.08461/0.5347, allocations: 69.06 MB / 0.5234 GB, free: 5.254 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/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