Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 105.7 kB / 17.06 MB, free: 6.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001235/0.001236, allocations: 196.1 kB / 18 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009983/0.0009983, allocations: 52.06 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3013, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01043/0.3117, allocations: 9.626 MB / 410.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005639/0.3174, allocations: 3.097 MB / 413.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001348/0.3188, allocations: 55.75 kB / 413.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001953/0.3208, allocations: 0.7063 MB / 414.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002553/0.3234, allocations: 0.8038 MB / 415 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001087/0.3245, allocations: 391.5 kB / 415.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002977/0.3275, allocations: 2.541 MB / 418 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002842/0.3303, allocations: 2.326 MB / 420.3 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00161/0.3319, allocations: 1.188 MB / 421.5 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001739/0.3337, allocations: 1.495 MB / 423 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003607/0.3341, allocations: 316 kB / 423.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006258/0.3347, allocations: 419.8 kB / 423.7 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000771/0.3355, allocations: 0.9077 MB / 424.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001307/0.3368, allocations: 1.419 MB / 426 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003318/0.3401, allocations: 4.143 MB / 430.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.3401, allocations: 4 kB / 430.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.3402, allocations: 3.938 kB / 430.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.66e-05/0.3402, allocations: 0 / 430.2 MB, free: 11.3 MB / 350.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.004751/0.345, allocations: 2.9 MB / 433.1 MB, free: 8.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.345, allocations: 16.03 kB / 433.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006208/0.3456, allocations: 285.7 kB / 433.4 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002177/0.3478, allocations: 1.538 MB / 434.9 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/0.3479, allocations: 164.3 kB / 435.1 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002923/0.3482, allocations: 208 kB / 435.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003989/0.3522, allocations: 2.796 MB / 438.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.515e-05/0.3523, allocations: 11.84 kB / 438.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001866/0.3525, allocations: 87.98 kB / 438.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001043/0.3526, allocations: 104.2 kB / 438.2 MB, free: 2.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003621/0.3562, allocations: 2.355 MB / 440.6 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01137/0.3676, allocations: 8.491 MB / 449.1 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002288/0.3699, allocations: 1.711 MB / 450.8 MB, free: 6.039 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001604/0.3716, allocations: 0.9595 MB / 451.8 MB, free: 5.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002892/0.3719, allocations: 207.2 kB / 452 MB, free: 4.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.3719, allocations: 51.44 kB / 452 MB, free: 4.781 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 2.906e-06/0.3719, allocations: 0 / 452 MB, free: 4.781 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01226/0.3842, allocations: 6.226 MB / 458.2 MB, free: 14.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.3842, allocations: 64.41 kB / 458.3 MB, free: 14.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001904/0.3862, allocations: 1.441 MB / 459.7 MB, free: 12.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.608e-05/0.3862, allocations: 45.7 kB / 459.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006726/0.3869, allocations: 1.045 MB / 460.8 MB, free: 11.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002961/0.3872, allocations: 406.1 kB / 461.2 MB, free: 11.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003896/0.3876, allocations: 255.4 kB / 461.5 MB, free: 11.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3878, allocations: 365.9 kB / 461.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.3889, allocations: 0.6832 MB / 462.5 MB, free: 10.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.3902, allocations: 1.07 MB / 463.6 MB, free: 8.816 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002508/0.3927, allocations: 1.868 MB / 465.5 MB, free: 6.789 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-06/0.3927, allocations: 4 kB / 465.5 MB, free: 6.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003862/0.3966, allocations: 2.421 MB / 467.9 MB, free: 4.324 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.3966, allocations: 8 kB / 467.9 MB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.3966, allocations: 12 kB / 467.9 MB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009294/0.3976, allocations: 415.3 kB / 468.3 MB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.3987, allocations: 327.5 kB / 468.6 MB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006996/0.4058, allocations: 7.05 MB / 475.7 MB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.4069, allocations: 99.84 kB / 475.8 MB, free: 12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/0.4071, allocations: 63.98 kB / 475.8 MB, free: 11.94 MB / 398.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.001502/0.4086, allocations: 0.6885 MB / 476.5 MB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004595/0.4091, allocations: 158.1 kB / 476.7 MB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003694/0.4128, allocations: 2.123 MB / 478.8 MB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.4128, allocations: 12 kB / 478.8 MB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/0.4128, allocations: 7.938 kB / 478.8 MB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.4128, allocations: 7.969 kB / 478.8 MB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007457/0.4203, allocations: 4.563 MB / 483.4 MB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.4203, allocations: 0 / 483.4 MB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008778/0.4212, allocations: 220.1 kB / 483.6 MB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001088/0.4223, allocations: 447.1 kB / 484 MB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.126e-05/0.4224, allocations: 31.98 kB / 484.1 MB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007739/0.4302, allocations: 8.625 MB / 492.7 MB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.4302, allocations: 7.938 kB / 492.7 MB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004956/0.4351, allocations: 3.092 MB / 495.8 MB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006744/0.4358, allocations: 379 kB / 496.2 MB, free: 6.727 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000177/0.436, allocations: 28 kB / 496.2 MB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008225/0.4368, allocations: 83.91 kB / 496.3 MB, free: 6.617 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/0.4371, allocations: 92.75 kB / 496.4 MB, free: 6.527 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.325e-05/0.4372, allocations: 43.98 kB / 496.4 MB, free: 6.484 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001377/0.4385, allocations: 0.9886 MB / 497.4 MB, free: 5.496 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4385, allocations: 0 / 497.4 MB, free: 5.496 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001636/0.4402, allocations: 468.1 kB / 497.9 MB, free: 5.039 MB / 414.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.0003866/0.4406, allocations: 199 kB / 498.1 MB, free: 4.836 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00347/0.4441, allocations: 2.223 MB / 0.4886 GB, free: 2.555 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4441, allocations: 1.938 kB / 0.4886 GB, free: 2.555 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002185/0.4463, allocations: 1.457 MB / 0.49 GB, free: 1.043 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.4479, allocations: 423.8 kB / 0.4904 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006739/0.4547, allocations: 4.428 MB / 0.4947 GB, free: 12.15 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001405/0.4561, allocations: 1.807 MB / 0.4965 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009406/0.457, allocations: 365.6 kB / 0.4968 GB, free: 9.941 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003159/0.4574, allocations: 115.4 kB / 0.4969 GB, free: 9.828 MB / 430.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4574, allocations: 0 / 0.4969 GB, free: 9.828 MB / 430.1 MB Notification: Performance of Templates: time 0.04245/0.4998, allocations: 24.79 MB / 0.5211 GB, free: 1.266 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches