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.001222/0.001222, allocations: 115.7 kB / 17.74 MB, free: 5.297 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.001241/0.001241, allocations: 189.6 kB / 18.67 MB, free: 4.375 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.311/1.311, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 51.92 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2483, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01038/0.2587, allocations: 9.635 MB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005842/0.2646, allocations: 3.094 MB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.266, allocations: 55.75 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001857/0.2678, allocations: 0.6634 MB / 414.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002582/0.2704, allocations: 0.7687 MB / 415.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.2717, allocations: 391.4 kB / 416 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003255/0.2749, allocations: 2.549 MB / 418.6 MB, free: 7.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003028/0.278, allocations: 2.318 MB / 420.9 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001713/0.2797, allocations: 1.188 MB / 422.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002393/0.2821, allocations: 1.498 MB / 423.6 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007361/0.2829, allocations: 316 kB / 423.9 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00112/0.284, allocations: 427.8 kB / 424.3 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001112/0.2851, allocations: 0.8999 MB / 425.2 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002023/0.2872, allocations: 1.412 MB / 426.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004145/0.2913, allocations: 4.143 MB / 430.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2914, allocations: 0 / 430.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2914, allocations: 0 / 430.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.531e-05/0.2915, allocations: 8 kB / 430.8 MB, free: 11.37 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.005898/0.2974, allocations: 2.9 MB / 433.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.2974, allocations: 12.03 kB / 433.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007204/0.2981, allocations: 285.7 kB / 433.9 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0025/0.3007, allocations: 1.546 MB / 435.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.3008, allocations: 160.3 kB / 435.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003078/0.3011, allocations: 216 kB / 435.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004733/0.3059, allocations: 2.792 MB / 438.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.425e-05/0.3059, allocations: 11.89 kB / 438.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002095/0.3062, allocations: 88 kB / 438.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000112/0.3063, allocations: 104.2 kB / 438.9 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004113/0.3104, allocations: 2.347 MB / 441.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01313/0.3235, allocations: 8.507 MB / 449.7 MB, free: 7.934 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002381/0.326, allocations: 1.698 MB / 451.4 MB, free: 6.109 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001708/0.3277, allocations: 0.9674 MB / 452.4 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002733/0.328, allocations: 200.2 kB / 452.6 MB, free: 4.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/0.328, allocations: 47.5 kB / 452.6 MB, free: 4.855 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 2.675e-06/0.328, allocations: 0 / 452.6 MB, free: 4.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01328/0.3413, allocations: 6.23 MB / 458.8 MB, free: 14.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.3414, allocations: 68.41 kB / 458.9 MB, free: 14.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00229/0.3437, allocations: 1.437 MB / 460.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001184/0.3438, allocations: 45.7 kB / 460.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007919/0.3446, allocations: 1.049 MB / 461.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003626/0.345, allocations: 406.1 kB / 461.8 MB, free: 11.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004122/0.3454, allocations: 251.5 kB / 462.1 MB, free: 11.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3456, allocations: 365.9 kB / 462.4 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.3468, allocations: 0.687 MB / 463.1 MB, free: 10.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.3482, allocations: 1.073 MB / 464.2 MB, free: 8.879 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002811/0.351, allocations: 1.871 MB / 466.1 MB, free: 6.848 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.351, allocations: 4 kB / 466.1 MB, free: 6.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00429/0.3553, allocations: 2.409 MB / 468.5 MB, free: 4.395 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.3554, allocations: 15.98 kB / 468.5 MB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.3554, allocations: 12 kB / 468.5 MB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009966/0.3564, allocations: 429.9 kB / 468.9 MB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/0.3577, allocations: 331.5 kB / 469.3 MB, free: 3.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007111/0.3648, allocations: 7.029 MB / 476.3 MB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.3662, allocations: 107.8 kB / 476.4 MB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.3663, allocations: 59.98 kB / 476.4 MB, free: 12 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.001223/0.3676, allocations: 0.6885 MB / 477.1 MB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003458/0.3679, allocations: 158.1 kB / 477.3 MB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003813/0.3717, allocations: 2.13 MB / 479.4 MB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.3718, allocations: 16 kB / 479.4 MB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.3718, allocations: 4 kB / 479.4 MB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.3718, allocations: 7.969 kB / 479.5 MB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007621/0.3794, allocations: 4.555 MB / 484 MB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.3795, allocations: 4 kB / 484 MB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009348/0.3804, allocations: 211.7 kB / 484.2 MB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.3816, allocations: 451.3 kB / 484.7 MB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.04e-05/0.3817, allocations: 31.98 kB / 484.7 MB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008095/0.3898, allocations: 8.614 MB / 493.3 MB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/0.3898, allocations: 15.88 kB / 493.3 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00507/0.3949, allocations: 3.099 MB / 496.4 MB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007866/0.3957, allocations: 379 kB / 496.8 MB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002291/0.3959, allocations: 31.98 kB / 496.8 MB, free: 6.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008881/0.3968, allocations: 79.91 kB / 496.9 MB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002363/0.3971, allocations: 100.7 kB / 497 MB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.709e-05/0.3972, allocations: 39.98 kB / 497 MB, free: 6.535 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001419/0.3986, allocations: 0.9847 MB / 498 MB, free: 5.551 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3986, allocations: 0 / 498 MB, free: 5.551 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001588/0.4002, allocations: 468.1 kB / 498.5 MB, free: 5.094 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.0003998/0.4006, allocations: 189 kB / 498.7 MB, free: 4.902 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003707/0.4043, allocations: 2.233 MB / 0.4892 GB, free: 2.613 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.4044, allocations: 4.125 kB / 0.4892 GB, free: 2.609 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002313/0.4067, allocations: 1.446 MB / 0.4906 GB, free: 1.109 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002056/0.4087, allocations: 421 kB / 0.491 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007237/0.416, allocations: 4.489 MB / 0.4954 GB, free: 12.14 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001445/0.4175, allocations: 1.788 MB / 0.4971 GB, free: 10.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005151/0.418, allocations: 123.4 kB / 0.4972 GB, free: 10.2 MB / 430.1 MB Notification: Performance of SimCode: time 5.01e-07/0.418, allocations: 0 / 0.4972 GB, free: 10.2 MB / 430.1 MB Notification: Performance of Templates: time 0.2463/0.6643, allocations: 69.16 MB / 0.5648 GB, free: 115.6 MB / 462.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/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