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.001557/0.001557, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001168/0.001169, allocations: 192 kB / 18.63 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.291/1.291, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009894/0.0009895, allocations: 47.45 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09042/0.09143, allocations: 49.46 MB / 351.5 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01019/0.1016, allocations: 9.61 MB / 361.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005144/0.1068, allocations: 3.104 MB / 364.2 MB, free: 6.898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007713/0.1076, allocations: 51.81 kB / 364.3 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001342/0.109, allocations: 0.6752 MB / 365 MB, free: 6.168 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001654/0.1106, allocations: 0.7608 MB / 365.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008227/0.1115, allocations: 391.5 kB / 366.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002469/0.114, allocations: 2.545 MB / 368.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002337/0.1163, allocations: 2.341 MB / 371 MB, free: 60 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.151/0.2673, allocations: 1.168 MB / 372.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001798/0.2691, allocations: 1.49 MB / 373.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000474/0.2696, allocations: 318.2 kB / 374 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007142/0.2703, allocations: 419 kB / 374.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008179/0.2712, allocations: 0.8955 MB / 375.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001301/0.2725, allocations: 1.423 MB / 376.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003859/0.2763, allocations: 4.146 MB / 380.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2763, allocations: 3.047 kB / 380.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2764, allocations: 4.031 kB / 380.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.067e-05/0.2764, allocations: 0 / 380.8 MB, free: 11.72 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.005272/0.2817, allocations: 2.899 MB / 383.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.2818, allocations: 10.47 kB / 383.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007413/0.2825, allocations: 289.6 kB / 384 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002655/0.2852, allocations: 1.544 MB / 385.6 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.2853, allocations: 161.3 kB / 385.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002956/0.2856, allocations: 206.6 kB / 385.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004101/0.2897, allocations: 2.8 MB / 388.7 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.37e-05/0.2898, allocations: 11.31 kB / 388.7 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001954/0.29, allocations: 82.66 kB / 388.8 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001247/0.2901, allocations: 111.9 kB / 388.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00357/0.2937, allocations: 2.349 MB / 391.3 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01153/0.3052, allocations: 8.494 MB / 399.8 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002114/0.3074, allocations: 1.697 MB / 401.5 MB, free: 15.35 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.3089, allocations: 0.9769 MB / 402.5 MB, free: 14.78 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000302/0.3093, allocations: 209.8 kB / 402.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.3093, allocations: 44.59 kB / 402.7 MB, free: 14.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.775e-06/0.3093, allocations: 0 / 402.7 MB, free: 14.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01299/0.3223, allocations: 6.227 MB / 408.9 MB, free: 8.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.509e-05/0.3224, allocations: 64.41 kB / 409 MB, free: 8.059 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002106/0.3245, allocations: 1.437 MB / 410.4 MB, free: 6.609 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.3246, allocations: 49.7 kB / 410.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000714/0.3253, allocations: 1.038 MB / 411.5 MB, free: 5.508 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003421/0.3257, allocations: 406.2 kB / 411.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004046/0.3261, allocations: 247.5 kB / 412.2 MB, free: 4.867 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3263, allocations: 365.9 kB / 412.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.3274, allocations: 0.6871 MB / 413.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001298/0.3287, allocations: 1.08 MB / 414.3 MB, free: 2.582 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002547/0.3312, allocations: 1.868 MB / 416.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.3313, allocations: 10.25 kB / 416.2 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003971/0.3352, allocations: 2.409 MB / 418.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.3353, allocations: 8 kB / 418.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.219e-05/0.3353, allocations: 19.97 kB / 418.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009438/0.3363, allocations: 414 kB / 419 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.3374, allocations: 333.4 kB / 419.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006676/0.3441, allocations: 7.042 MB / 426.4 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.3456, allocations: 99.8 kB / 426.5 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/0.3457, allocations: 60 kB / 426.5 MB, free: 5.891 MB / 334.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.001237/0.347, allocations: 0.6836 MB / 427.2 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003366/0.3473, allocations: 158.1 kB / 427.4 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003667/0.351, allocations: 2.135 MB / 429.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.351, allocations: 12 kB / 429.5 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.351, allocations: 4 kB / 429.5 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.351, allocations: 7.969 kB / 429.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007769/0.3588, allocations: 4.562 MB / 434.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.3588, allocations: 4.406 kB / 434.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009242/0.3598, allocations: 218.4 kB / 434.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.3609, allocations: 443.7 kB / 434.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.579e-05/0.361, allocations: 31.98 kB / 434.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007937/0.369, allocations: 8.629 MB / 443.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.369, allocations: 4 kB / 443.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005028/0.374, allocations: 3.099 MB / 446.5 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.3751, allocations: 385.6 kB / 446.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002466/0.3754, allocations: 27.98 kB / 446.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008547/0.3762, allocations: 83.91 kB / 447 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/0.3765, allocations: 91.44 kB / 447.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.852e-05/0.3766, allocations: 39.98 kB / 447.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001382/0.3779, allocations: 0.9895 MB / 448.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.378, allocations: 0 / 448.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001591/0.3795, allocations: 460 kB / 448.5 MB, free: 15.19 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.0003518/0.3799, allocations: 197.9 kB / 448.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003518/0.3834, allocations: 2.238 MB / 451 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.3835, allocations: 0 / 451 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002223/0.3857, allocations: 1.44 MB / 452.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.3877, allocations: 423 kB / 452.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006825/0.3945, allocations: 4.443 MB / 457.3 MB, free: 6.387 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001384/0.3959, allocations: 1.795 MB / 459.1 MB, free: 4.559 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001057/0.397, allocations: 369.6 kB / 459.4 MB, free: 4.191 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.3973, allocations: 119.4 kB / 459.5 MB, free: 4.074 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3973, allocations: 0 / 459.5 MB, free: 4.074 MB / 366.1 MB Notification: Performance of Templates: time 0.03859/0.4359, allocations: 24.36 MB / 483.9 MB, free: 12.03 MB / 398.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 -s gbode -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