Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001058/0.001058, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001073/0.001073, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 60.34 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09366/0.09481, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01006/0.1049, allocations: 9.658 MB / 368.6 MB, free: 3.641 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004936/0.1099, allocations: 3.166 MB / 371.7 MB, free: 472 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007495/0.1106, allocations: 55.75 kB / 371.8 MB, free: 416 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1711/0.2818, allocations: 0.6719 MB / 372.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002771/0.2846, allocations: 0.7643 MB / 373.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009363/0.2856, allocations: 391.5 kB / 373.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003194/0.2888, allocations: 2.557 MB / 376.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002507/0.2913, allocations: 2.341 MB / 378.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002248/0.2936, allocations: 1.186 MB / 379.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002603/0.2962, allocations: 1.498 MB / 381.2 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005052/0.2967, allocations: 316.1 kB / 381.5 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009234/0.2976, allocations: 421.5 kB / 381.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008316/0.2985, allocations: 0.9005 MB / 382.8 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001566/0.3, allocations: 1.425 MB / 384.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004645/0.3047, allocations: 4.159 MB / 388.4 MB, free: 6.387 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3047, allocations: 1.281 kB / 388.4 MB, free: 6.387 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3047, allocations: 0 / 388.4 MB, free: 6.387 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.85e-05/0.3048, allocations: 0 / 388.4 MB, free: 6.387 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.005821/0.3106, allocations: 2.912 MB / 391.3 MB, free: 4.379 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.3107, allocations: 12.84 kB / 391.3 MB, free: 4.375 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007813/0.3115, allocations: 293.5 kB / 391.6 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002536/0.314, allocations: 1.538 MB / 393.1 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.3141, allocations: 161.6 kB / 393.3 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003067/0.3145, allocations: 209.4 kB / 393.5 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004363/0.3188, allocations: 2.804 MB / 396.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.046e-05/0.3189, allocations: 6.969 kB / 396.3 MB, free: 1.312 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001705/0.3191, allocations: 86.97 kB / 396.4 MB, free: 1.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.112e-05/0.3192, allocations: 106.3 kB / 396.5 MB, free: 1.227 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003431/0.3226, allocations: 2.346 MB / 398.8 MB, free: 28 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01373/0.3363, allocations: 8.502 MB / 407.3 MB, free: 7.949 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002363/0.3387, allocations: 1.71 MB / 409.1 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001598/0.3404, allocations: 0.9782 MB / 410 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000296/0.3407, allocations: 203.2 kB / 410.2 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.3407, allocations: 43.56 kB / 410.3 MB, free: 4.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.966e-06/0.3407, allocations: 0 / 410.3 MB, free: 4.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01292/0.3537, allocations: 6.224 MB / 416.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.798e-05/0.3537, allocations: 76.34 kB / 416.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002046/0.3558, allocations: 1.441 MB / 418 MB, free: 12.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.688e-05/0.3559, allocations: 41.7 kB / 418.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006811/0.3566, allocations: 1.048 MB / 419.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002932/0.3569, allocations: 408.9 kB / 419.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003822/0.3573, allocations: 247.5 kB / 419.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3574, allocations: 363.3 kB / 420.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.3585, allocations: 0.691 MB / 420.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001296/0.3598, allocations: 1.066 MB / 421.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002515/0.3623, allocations: 1.872 MB / 423.7 MB, free: 6.883 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.407e-06/0.3623, allocations: 4 kB / 423.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00397/0.3663, allocations: 2.416 MB / 426.1 MB, free: 4.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.3664, allocations: 8 kB / 426.2 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.921e-05/0.3664, allocations: 15.98 kB / 426.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009461/0.3673, allocations: 410.5 kB / 426.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.3685, allocations: 335.5 kB / 426.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006864/0.3754, allocations: 7.047 MB / 433.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/0.3768, allocations: 95.8 kB / 434 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/0.3769, allocations: 63.98 kB / 434.1 MB, free: 12.05 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.001108/0.378, allocations: 0.6886 MB / 434.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002706/0.3783, allocations: 165.9 kB / 435 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003584/0.3819, allocations: 2.13 MB / 437.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.3819, allocations: 12 kB / 437.1 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.3819, allocations: 8 kB / 437.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.3819, allocations: 8.062 kB / 437.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007361/0.3893, allocations: 4.568 MB / 441.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.3893, allocations: 4 kB / 441.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000909/0.3902, allocations: 211.7 kB / 441.9 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001096/0.3914, allocations: 448.9 kB / 442.3 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.026e-05/0.3915, allocations: 31.98 kB / 442.4 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007818/0.3993, allocations: 8.621 MB / 451 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3993, allocations: 4 kB / 451 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00476/0.4041, allocations: 3.107 MB / 454.1 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008949/0.405, allocations: 386.9 kB / 454.5 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002214/0.4052, allocations: 32.09 kB / 454.5 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000844/0.4061, allocations: 79.91 kB / 454.6 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.4063, allocations: 100.7 kB / 454.7 MB, free: 6.645 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.359e-05/0.4064, allocations: 35.98 kB / 454.7 MB, free: 6.609 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00136/0.4078, allocations: 0.9888 MB / 455.7 MB, free: 5.621 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4078, allocations: 0 / 455.7 MB, free: 5.621 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001565/0.4093, allocations: 464.1 kB / 456.2 MB, free: 5.168 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.0003619/0.4097, allocations: 194.9 kB / 456.3 MB, free: 4.965 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003534/0.4132, allocations: 2.232 MB / 458.6 MB, free: 2.676 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.4133, allocations: 0 / 458.6 MB, free: 2.676 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002171/0.4154, allocations: 1.438 MB / 460 MB, free: 1.191 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001819/0.4173, allocations: 434.7 kB / 460.4 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00676/0.424, allocations: 4.431 MB / 464.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001467/0.4255, allocations: 1.803 MB / 466.7 MB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001115/0.4267, allocations: 369.6 kB / 467 MB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003241/0.427, allocations: 111.4 kB / 467.1 MB, free: 9.98 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.427, allocations: 0 / 467.1 MB, free: 9.98 MB / 382.1 MB Notification: Performance of Templates: time 0.03781/0.4648, allocations: 24.44 MB / 491.6 MB, free: 1.793 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches