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.001536/0.001536, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001788/0.001788, allocations: 192 kB / 18.62 MB, free: 4.434 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.337/1.337, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009815/0.0009816, allocations: 45.83 kB / 302.1 MB, free: 5.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09017/0.09117, allocations: 49.45 MB / 351.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01029/0.1015, allocations: 9.619 MB / 361.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005474/0.107, allocations: 3.104 MB / 364.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001126/0.1082, allocations: 55.75 kB / 364.3 MB, free: 6.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001624/0.1098, allocations: 0.6751 MB / 365 MB, free: 6.211 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002166/0.112, allocations: 0.757 MB / 365.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000808/0.1128, allocations: 391.4 kB / 366.1 MB, free: 5.066 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002479/0.1153, allocations: 2.54 MB / 368.6 MB, free: 2.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002389/0.1177, allocations: 2.338 MB / 371 MB, free: 120 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1612/0.2789, allocations: 1.177 MB / 372.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002739/0.2817, allocations: 1.495 MB / 373.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007874/0.2825, allocations: 316.6 kB / 374 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001215/0.2837, allocations: 421.2 kB / 374.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001034/0.2848, allocations: 0.895 MB / 375.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002056/0.2868, allocations: 1.421 MB / 376.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004589/0.2914, allocations: 4.147 MB / 380.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.2915, allocations: 1.062 kB / 380.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2915, allocations: 0 / 380.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001278/0.2916, allocations: 0 / 380.8 MB, free: 11.73 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.006488/0.2981, allocations: 2.901 MB / 383.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.2982, allocations: 11.06 kB / 383.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000742/0.2989, allocations: 297.5 kB / 384 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002544/0.3015, allocations: 1.532 MB / 385.6 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.3016, allocations: 162.2 kB / 385.7 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002938/0.3019, allocations: 214.5 kB / 385.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004024/0.3059, allocations: 2.799 MB / 388.7 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.226e-05/0.306, allocations: 6.031 kB / 388.7 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001911/0.3062, allocations: 90.67 kB / 388.8 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001238/0.3063, allocations: 105.7 kB / 388.9 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003448/0.3098, allocations: 2.356 MB / 391.3 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01051/0.3203, allocations: 8.494 MB / 399.8 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001966/0.3223, allocations: 1.699 MB / 401.5 MB, free: 15.33 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001476/0.3238, allocations: 0.9727 MB / 402.4 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002617/0.324, allocations: 202.3 kB / 402.6 MB, free: 14.56 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.3241, allocations: 43.56 kB / 402.7 MB, free: 14.51 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.685e-06/0.3241, allocations: 0 / 402.7 MB, free: 14.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01218/0.3363, allocations: 6.234 MB / 408.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/0.3363, allocations: 64.41 kB / 409 MB, free: 8.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001962/0.3383, allocations: 1.437 MB / 410.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.859e-05/0.3384, allocations: 53.69 kB / 410.5 MB, free: 6.562 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006729/0.3391, allocations: 1.035 MB / 411.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002932/0.3394, allocations: 412.1 kB / 411.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004073/0.3398, allocations: 251.5 kB / 412.2 MB, free: 4.871 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3399, allocations: 357.9 kB / 412.5 MB, free: 4.516 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.341, allocations: 0.691 MB / 413.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.3423, allocations: 1.072 MB / 414.3 MB, free: 2.598 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002391/0.3447, allocations: 1.866 MB / 416.1 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/0.3447, allocations: 4 kB / 416.1 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003882/0.3486, allocations: 2.413 MB / 418.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.3486, allocations: 15.98 kB / 418.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.778e-05/0.3487, allocations: 8 kB / 418.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009518/0.3496, allocations: 420.8 kB / 419 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.3508, allocations: 326.7 kB / 419.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006603/0.3574, allocations: 7.045 MB / 426.4 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.359, allocations: 107.5 kB / 426.5 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/0.3591, allocations: 59.98 kB / 426.5 MB, free: 5.906 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.001418/0.3605, allocations: 0.6798 MB / 427.2 MB, free: 5.234 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000358/0.3609, allocations: 158.1 kB / 427.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003641/0.3646, allocations: 2.132 MB / 429.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.3646, allocations: 14.91 kB / 429.5 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.3646, allocations: 4 kB / 429.5 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.3646, allocations: 7.969 kB / 429.5 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007845/0.3725, allocations: 4.569 MB / 434.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.3725, allocations: 4 kB / 434.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008891/0.3734, allocations: 214.4 kB / 434.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001074/0.3745, allocations: 446.6 kB / 434.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.879e-05/0.3746, allocations: 35.98 kB / 434.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007789/0.3824, allocations: 8.61 MB / 443.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.3824, allocations: 6.625 kB / 443.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004823/0.3872, allocations: 3.103 MB / 446.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009299/0.3882, allocations: 386.9 kB / 446.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002196/0.3884, allocations: 31.98 kB / 446.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008401/0.3893, allocations: 79.91 kB / 447 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/0.3895, allocations: 98.06 kB / 447.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.871e-05/0.3896, allocations: 35.98 kB / 447.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001437/0.391, allocations: 0.9886 MB / 448.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.391, allocations: 0 / 448.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001602/0.3926, allocations: 460 kB / 448.5 MB, free: 15.2 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.0003729/0.393, allocations: 193.8 kB / 448.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003525/0.3966, allocations: 2.24 MB / 451 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.3966, allocations: 0 / 451 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00223/0.3988, allocations: 1.441 MB / 452.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002298/0.4011, allocations: 426.9 kB / 452.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006956/0.4081, allocations: 4.43 MB / 457.3 MB, free: 6.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001576/0.4097, allocations: 1.807 MB / 459.1 MB, free: 4.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001094/0.4108, allocations: 365.5 kB / 459.4 MB, free: 4.207 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003241/0.4112, allocations: 115.4 kB / 459.5 MB, free: 4.094 MB / 366.1 MB Notification: Performance of SimCode: time 2.034e-06/0.4112, allocations: 0 / 459.5 MB, free: 4.094 MB / 366.1 MB Notification: Performance of Templates: time 0.0402/0.4514, allocations: 24.38 MB / 483.9 MB, free: 12.04 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 cvode -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